diff --git a/src/parser.rs b/src/parser.rs index 1e70723..eb8937a 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -89,7 +89,7 @@ impl Parser { } pub fn parse(&mut self) -> Expr { - if self.peek() == None {return Expr::EOL} + if self.peek().is_none() {return Expr::EOL} self.parse_expr(0) } } \ No newline at end of file