Replace .find().is_some() by .any()
This commit is contained in:
parent
c08c5c0895
commit
dfa61a9eaa
1 changed files with 1 additions and 2 deletions
|
@ -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",
|
||||
|
|
Reference in a new issue