diff --git a/src/shape_and_strides.rs b/src/shape_and_strides.rs index 0a88ef4..9c6bfd1 100644 --- a/src/shape_and_strides.rs +++ b/src/shape_and_strides.rs @@ -59,7 +59,7 @@ impl ShapeAndStrides { } pub fn new_borrowed(shape: &[i64], strides: Option<&[i64]>) -> Self { - if let Some(ref strides) = strides { + if let Some(strides) = strides { assert_eq!( shape.len(), strides.len(),