clippy: misc. fixes

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2021-01-19 11:37:49 +01:00
parent 3f48cdb380
commit ea368a06cd
14 changed files with 23 additions and 28 deletions

View File

@ -49,7 +49,7 @@ impl DateTimeValue {
}
pub fn list_contains(list: &[DateTimeValue], value: u32) -> bool {
list.iter().find(|spec| spec.contains(value)).is_some()
list.iter().any(|spec| spec.contains(value))
}
// Find an return an entry greater than value