Skip to content

Commit

Permalink
Misc clippy fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Oom committed Aug 30, 2024
1 parent bae0631 commit 6e1fd55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions kdtree/src/sah.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,17 +267,17 @@ fn repartition(
extend_vec_with_events(
&mut events_left_both,
*index,
&clipped.min(),
&clipped.max(),
clipped.min(),
clipped.max(),
);
left_indices.push(*index);
}
if let Some(clipped) = geometry.clip_aabb(&right_aabb) {
extend_vec_with_events(
&mut events_right_both,
*index,
&clipped.min(),
&clipped.max(),
clipped.min(),
clipped.max(),
);
right_indices.push(*index);
}
Expand Down
2 changes: 1 addition & 1 deletion tracing/src/image_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl AddAssign for ImageBuffer {
debug_assert!(self.size.x == rhs.size.x && self.size.y == rhs.size.y);
self.pixels
.iter_mut()
.zip(rhs.pixels.into_iter())
.zip(rhs.pixels)
.for_each(|(a, b)| *a += b);
}
}

0 comments on commit 6e1fd55

Please sign in to comment.