From 60b2add19607f0f1d6e81a383cce33053c419d13 Mon Sep 17 00:00:00 2001 From: TomAFrench Date: Mon, 3 Jul 2023 08:45:46 +0000 Subject: [PATCH] chore: replace `.filter().count() > 0` with `.any()` --- crates/noirc_driver/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/noirc_driver/src/lib.rs b/crates/noirc_driver/src/lib.rs index f0fd351854..2ec68f69ec 100644 --- a/crates/noirc_driver/src/lib.rs +++ b/crates/noirc_driver/src/lib.rs @@ -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()) } }