Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix clippy error
  • Loading branch information
scho-furiosa committed Feb 12, 2026
commit d7e95616ed44bbf93006e5a61c4965e092fa2c3e
2 changes: 1 addition & 1 deletion src/iterators/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ impl<A, D: Dimension> Iterator for Baseiter<A, D>
None => return None,
Some(ref mut ix) => ix,
};
let offset = D::stride_offset(&index, &self.strides);
let offset = D::stride_offset(index, &self.strides);
if !self.dim.next_for_mut(index) {
self.index = None;
}
Expand Down
2 changes: 1 addition & 1 deletion src/partial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl<T> Partial<T>
// covers the whole output.
if left.is_stub() {
right
} else if left.ptr.wrapping_add(left.len) == right.ptr {
} else if ptr::eq(left.ptr.wrapping_add(left.len), right.ptr) {
left.len += right.release_ownership();
left
} else {
Expand Down