Replace .find().is_some() by .any()

This commit is contained in:
Rodolphe Breard 2019-09-17 17:45:59 +02:00
parent c08c5c0895
commit dfa61a9eaa

View file

@ -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",