Replace ? by try!
This commit is contained in:
parent
00a7d64386
commit
f38c3e11b7
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ impl<T: Iterator<Item=char>> Parser<T> {
|
|||
match self.current {
|
||||
Some(ref x) => Ok(x),
|
||||
None => {
|
||||
self.current = Some(self.next()?);
|
||||
self.current = Some(try!(self.next()));
|
||||
self.peek()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue