diff --git a/opensmtpd-derive/src/lib.rs b/opensmtpd-derive/src/lib.rs index 8dc5a58..a9ea598 100644 --- a/opensmtpd-derive/src/lib.rs +++ b/opensmtpd-derive/src/lib.rs @@ -60,8 +60,7 @@ impl OpenSmtpdAttributes { let events = if self .events .iter() - .find(|&e| e.to_string().to_lowercase().as_str() == "all") - .is_some() + .any(|e| e.to_string().to_lowercase().as_str() == "all") { let lst = [ "LinkAuth",