Replace ? by try!

This commit is contained in:
Christian Hofer 2017-07-16 18:00:50 +02:00
parent 00a7d64386
commit f38c3e11b7

View file

@ -112,7 +112,7 @@ impl<T: Iterator<Item=char>> Parser<T> {
match self.current { match self.current {
Some(ref x) => Ok(x), Some(ref x) => Ok(x),
None => { None => {
self.current = Some(self.next()?); self.current = Some(try!(self.next()));
self.peek() self.peek()
} }
} }