Skip to content

Commit

Permalink
Fix the clippy issue
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Jun 28, 2024
1 parent c4e27f6 commit c627b71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion vello_tests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ pub fn write_png_to_file(
) -> Result<(), anyhow::Error> {
let width = params.width;
let height = params.height;
let mut file = File::create(&out_path)?;
let mut file = File::create(out_path)?;
let mut encoder = png::Encoder::new(&mut file, width, height);
encoder.set_color(png::ColorType::Rgba);
encoder.set_depth(png::BitDepth::Eight);
Expand Down
3 changes: 3 additions & 0 deletions vello_tests/src/snapshot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ impl Snapshot<'_> {
}
}

/// Run a snapshot test.
///
/// Try and keep the width and height small, to reduce the size of committed binary data
pub fn snapshot_test_sync(scene: Scene, params: &TestParams) -> Result<Snapshot<'_>> {
pollster::block_on(snapshot_test(scene, params))
}
Expand Down

0 comments on commit c627b71

Please sign in to comment.