Skip to content

Commit d7e9561

Browse files
committed
Fix clippy error
1 parent cc53dd2 commit d7e9561

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/iterators/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl<A, D: Dimension> Iterator for Baseiter<A, D>
7676
None => return None,
7777
Some(ref mut ix) => ix,
7878
};
79-
let offset = D::stride_offset(&index, &self.strides);
79+
let offset = D::stride_offset(index, &self.strides);
8080
if !self.dim.next_for_mut(index) {
8181
self.index = None;
8282
}

src/partial.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl<T> Partial<T>
7171
// covers the whole output.
7272
if left.is_stub() {
7373
right
74-
} else if left.ptr.wrapping_add(left.len) == right.ptr {
74+
} else if ptr::eq(left.ptr.wrapping_add(left.len), right.ptr) {
7575
left.len += right.release_ownership();
7676
left
7777
} else {

0 commit comments

Comments
 (0)