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
|
let events = if self
|
||||||
.events
|
.events
|
||||||
.iter()
|
.iter()
|
||||||
.find(|&e| e.to_string().to_lowercase().as_str() == "all")
|
.any(|e| e.to_string().to_lowercase().as_str() == "all")
|
||||||
.is_some()
|
|
||||||
{
|
{
|
||||||
let lst = [
|
let lst = [
|
||||||
"LinkAuth",
|
"LinkAuth",
|
||||||
|
|
Reference in a new issue