Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
DGriffin91 committed Nov 13, 2022
1 parent 42663af commit 0aa4a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tools/frame_capture/src/image_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions tools/frame_capture/src/scene_tester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 0aa4a49

Please sign in to comment.