From 0aa4a49863421d3f102246924de10ac515c77113 Mon Sep 17 00:00:00 2001 From: DGriffin91 Date: Sun, 13 Nov 2022 15:42:12 -0800 Subject: [PATCH] clippy --- tools/frame_capture/src/image_copy.rs | 4 ++-- tools/frame_capture/src/scene_tester.rs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/frame_capture/src/image_copy.rs b/tools/frame_capture/src/image_copy.rs index 097ddbca18734..c6c6ce80182df 100644 --- a/tools/frame_capture/src/image_copy.rs +++ b/tools/frame_capture/src/image_copy.rs @@ -103,11 +103,11 @@ impl ImageCopier { } pub fn enable(&self) { - self.enabled.store(true, Ordering::Relaxed) + self.enabled.store(true, Ordering::Relaxed); } pub fn disable(&self) { - self.enabled.store(false, Ordering::Relaxed) + self.enabled.store(false, Ordering::Relaxed); } pub fn enabled(&self) -> bool { diff --git a/tools/frame_capture/src/scene_tester.rs b/tools/frame_capture/src/scene_tester.rs index 21e9034c41a47..ac07e90b1529f 100644 --- a/tools/frame_capture/src/scene_tester.rs +++ b/tools/frame_capture/src/scene_tester.rs @@ -139,10 +139,10 @@ pub fn setup_test( render_target_image_handle.clone(), cpu_image_handle.clone(), size, - &render_device, + render_device, )); - commands.spawn(ImageToSave(cpu_image_handle.clone())); + commands.spawn(ImageToSave(cpu_image_handle)); scene_controller.state = SceneState::Render(pre_roll_frames); scene_controller.name = scene_name; @@ -157,7 +157,7 @@ fn update( ) { if let SceneState::Render(n) = scene_controller.state { if n > 0 { - scene_controller.state = SceneState::Render(n - 1) + scene_controller.state = SceneState::Render(n - 1); } else { for image in images_to_save.iter() { let data = &images.get_mut(image).unwrap().data; @@ -169,7 +169,7 @@ fn update( if scene_controller.create_images { image::save_buffer( image_path, - &data, + data, scene_controller.width, scene_controller.height, image::ColorType::Rgba8,