From 9c9fbc1d742336d4451944b837e42dac76805193 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:15:18 +0000 Subject: [PATCH] chore: clippy fix (#3793) # Description ## Problem\* Resolves ## 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. --- compiler/noirc_frontend/src/tests.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/noirc_frontend/src/tests.rs b/compiler/noirc_frontend/src/tests.rs index ce3ef87c1a8..2619189ee8d 100644 --- a/compiler/noirc_frontend/src/tests.rs +++ b/compiler/noirc_frontend/src/tests.rs @@ -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, }); }