Skip to content

Commit

Permalink
chore: clippy fix (#3793)
Browse files Browse the repository at this point in the history
# Description

## Problem\*

Resolves <!-- Link to GitHub Issue -->

## Summary\*



## Additional Context



## Documentation\*

Check one:
- [ ] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[Exceptional Case]** Documentation to be submitted in a separate
PR.

# PR Checklist\*

- [ ] I have tested the changes locally.
- [ ] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
  • Loading branch information
TomAFrench authored Dec 13, 2023
1 parent cb52242 commit 9c9fbc1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions compiler/noirc_frontend/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,9 @@ mod test {

pub(crate) fn remove_experimental_warnings(errors: &mut Vec<(CompilationError, FileId)>) {
errors.retain(|(error, _)| match error {
CompilationError::ParseError(error) => match error.reason() {
Some(ParserErrorReason::ExperimentalFeature(..)) => false,
_ => true,
},
CompilationError::ParseError(error) => {
!matches!(error.reason(), Some(ParserErrorReason::ExperimentalFeature(..)))
}
_ => true,
});
}
Expand Down

0 comments on commit 9c9fbc1

Please sign in to comment.