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); } }