clippy: misc. fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
1 parent
3f48cdb380
commit
ea368a06cd
14 files changed
+23
-28
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user