Skip to content

Commit fc3ef94

Browse files
committed
fix lint warning on 1.87
1 parent 6868dad commit fc3ef94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/untyped_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ pub trait PyUntypedArrayMethods<'py>: Sealed {
241241

242242
/// Returns `true` if the there are no elements in the array.
243243
fn is_empty(&self) -> bool {
244-
self.shape().iter().any(|dim| *dim == 0)
244+
self.shape().contains(&0)
245245
}
246246
}
247247

0 commit comments

Comments
 (0)