Skip to content

Commit b8ad7dc

Browse files
committed
Satisfy clippy
1 parent ac583c5 commit b8ad7dc

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/arraytraits.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ where
6464
unsafe {
6565
&*self._ptr().as_ptr().offset(
6666
index
67-
.index_checked(&self._dim(), &self._strides())
67+
.index_checked(self._dim(), self._strides())
6868
.unwrap_or_else(|| array_out_of_bounds()),
6969
)
7070
}
@@ -86,7 +86,7 @@ where
8686
unsafe {
8787
&mut *self.as_mut_ptr().offset(
8888
index
89-
.index_checked(&self._dim(), &self._strides())
89+
.index_checked(self._dim(), self._strides())
9090
.unwrap_or_else(|| array_out_of_bounds()),
9191
)
9292
}

src/impl_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ impl<A, D: Dimension> ArrayRef<A, D>
24412441
D: Dimension + DimMax<E>,
24422442
E: Dimension,
24432443
{
2444-
let shape = co_broadcast::<D, E, <D as DimMax<E>>::Output>(self._dim(), &other._dim())?;
2444+
let shape = co_broadcast::<D, E, <D as DimMax<E>>::Output>(self._dim(), other._dim())?;
24452445
let view1 = if shape.slice() == self._dim().slice() {
24462446
self.view()
24472447
.into_dimensionality::<<D as DimMax<E>>::Output>()

src/numeric/impl_numeric.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ where D: Dimension
309309
A: Clone + One + Mul<Output = A>,
310310
D: RemoveAxis,
311311
{
312-
let min_stride_axis = self._dim().min_stride_axis(&self._strides());
312+
let min_stride_axis = self._dim().min_stride_axis(self._strides());
313313
if axis == min_stride_axis {
314314
crate::Zip::from(self.lanes(axis)).map_collect(|lane| lane.product())
315315
} else {

src/zip/ndproducer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl<'a, A, D: Dimension> NdProducer for ArrayView<'a, A, D>
296296
{
297297
self._ptr()
298298
.as_ptr()
299-
.offset(i.index_unchecked(&self._strides()))
299+
.offset(i.index_unchecked(self._strides()))
300300
}
301301

302302
fn stride_of(&self, axis: Axis) -> isize

0 commit comments

Comments
 (0)