Skip to content

Commit

Permalink
chore: replace .filter().count() > 0 with .any() (#1847)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAFrench authored Jul 3, 2023
1 parent 5d64f8a commit 1d1e424
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/noirc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ impl Driver {
if deny_warnings {
!errors.is_empty()
} else {
errors.iter().filter(|error| error.diagnostic.is_error()).count() != 0
errors.iter().any(|error| error.diagnostic.is_error())
}
}

Expand Down

0 comments on commit 1d1e424

Please sign in to comment.