Skip to content

Commit

Permalink
Update compiler/noirc_frontend/src/parser/parser/types.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Tom French <15848336+TomAFrench@users.noreply.github.com>
  • Loading branch information
asterite and TomAFrench authored Feb 24, 2025
1 parent f4349ea commit d910897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/noirc_frontend/src/parser/parser/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl<'a> Parser<'a> {
return typ;
}

if self.at_eof() || stop_tokens.iter().any(|token| token == &self.token) {
if self.at_eof() || stop_tokens.contains(self.token.token()) {
return typ;
}

Expand Down

0 comments on commit d910897

Please sign in to comment.