diff options
Diffstat (limited to 'compiler/src/ast')
| -rw-r--r-- | compiler/src/ast/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/ast/parser.rs b/compiler/src/ast/parser.rs index c0ad917..4b4f949 100644 --- a/compiler/src/ast/parser.rs +++ b/compiler/src/ast/parser.rs | |||
| @@ -86,7 +86,7 @@ where | |||
| 86 | 86 | ||
| 87 | fn parse_expr(&mut self) -> Result<Spanned<Expr>, Spanned<Error>> { | 87 | fn parse_expr(&mut self) -> Result<Spanned<Expr>, Spanned<Error>> { |
| 88 | let Spanned { inner: token, span } = match self.peek() { | 88 | let Spanned { inner: token, span } = match self.peek() { |
| 89 | Some(spanned) => spanned, | 89 | Some(token) => token, |
| 90 | None => return Err(Spanned::new(Error::UnexpectedEof, self.last_token_span)), | 90 | None => return Err(Spanned::new(Error::UnexpectedEof, self.last_token_span)), |
| 91 | }; | 91 | }; |
| 92 | 92 | ||
