mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-26 19:51:52 +03:00
clippy use .any
This commit is contained in:
parent
69a8b61efe
commit
848adfa6dd
@ -70,7 +70,7 @@ impl ArrayDimensions {
|
|||||||
/// Returns `true` if there is an array dimension equal to zero.
|
/// Returns `true` if there is an array dimension equal to zero.
|
||||||
///
|
///
|
||||||
pub fn is_zero(&self) -> bool {
|
pub fn is_zero(&self) -> bool {
|
||||||
self.0.iter().find(|number| number.is_zero()).is_some()
|
self.0.iter().any(|number| number.is_zero())
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user