From f38c3e11b74bb999547688a1d986b00734730264 Mon Sep 17 00:00:00 2001 From: Christian Hofer Date: Sun, 16 Jul 2017 18:00:50 +0200 Subject: [PATCH] Replace ? by try! --- parser/src/parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }