diff --git a/parser/src/parser.rs b/parser/src/parser.rs index b59987b..f8b04b5 100644 --- a/parser/src/parser.rs +++ b/parser/src/parser.rs @@ -112,7 +112,7 @@ impl> Parser { match self.current { Some(ref x) => Ok(x), None => { - self.current = Some(self.next()?); + self.current = Some(try!(self.next())); self.peek() } }