clippy use .any

This commit is contained in:
collin 2020-11-12 16:34:49 -08:00
parent 69a8b61efe
commit 848adfa6dd

View File

@ -70,7 +70,7 @@ impl ArrayDimensions {
/// Returns `true` if there is an array dimension equal to zero.
///
pub fn is_zero(&self) -> bool {
self.0.iter().find(|number| number.is_zero()).is_some()
self.0.iter().any(|number| number.is_zero())
}
///