Skip to content

Commit

Permalink
chore(parser): cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Mar 7, 2024
1 parent 60a202b commit 8bc3d54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions crates/fuse-parser/src/parsers/binding.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{lexer::TokenKind, Parser, ParserResult};
use fuse_ast::{Atom, BindingIdentifier, BindingPattern, BindingPatternKind};
use fuse_common::Span;
use fuse_ast::{BindingIdentifier, BindingPattern, BindingPatternKind};

impl<'a> Parser<'a> {
pub(crate) fn parse_binding(&mut self) -> ParserResult<BindingPattern> {
Expand Down
1 change: 1 addition & 0 deletions crates/fuse-parser/src/parsers/declarations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ impl<'a> Parser<'a> {
self.consume();

let binding = self.parse_binding()?;

let expression = if let Some(_) = self.consume_if(TokenKind::Eq) {
Some(self.parse_expression()?)
} else {
Expand Down

0 comments on commit 8bc3d54

Please sign in to comment.