From 6e1fd55ad472321bd42de011ace21a17eeb2cb67 Mon Sep 17 00:00:00 2001 From: Daniel Oom Date: Fri, 30 Aug 2024 19:24:47 +0200 Subject: [PATCH] Misc clippy fixups --- kdtree/src/sah.rs | 8 ++++---- tracing/src/image_buffer.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kdtree/src/sah.rs b/kdtree/src/sah.rs index 0ad258b..59f848d 100644 --- a/kdtree/src/sah.rs +++ b/kdtree/src/sah.rs @@ -267,8 +267,8 @@ fn repartition( extend_vec_with_events( &mut events_left_both, *index, - &clipped.min(), - &clipped.max(), + clipped.min(), + clipped.max(), ); left_indices.push(*index); } @@ -276,8 +276,8 @@ fn repartition( extend_vec_with_events( &mut events_right_both, *index, - &clipped.min(), - &clipped.max(), + clipped.min(), + clipped.max(), ); right_indices.push(*index); } diff --git a/tracing/src/image_buffer.rs b/tracing/src/image_buffer.rs index 9178363..7a4cc13 100644 --- a/tracing/src/image_buffer.rs +++ b/tracing/src/image_buffer.rs @@ -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); } }