Skip to content

Commit

Permalink
Fix clippy lint in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
HeroicKatora committed Jul 21, 2024
1 parent 7322174 commit 970a2f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/scaledown/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn main() {
let timer = Instant::now();
let scaled = img.resize(400, 400, filter);
println!("Scaled by {} in {}", name, Elapsed::from(&timer));
let mut output = File::create(&format!("test-{name}.png")).unwrap();
let mut output = File::create(format!("test-{name}.png")).unwrap();
scaled.write_to(&mut output, ImageFormat::Png).unwrap();
}

Expand Down
4 changes: 2 additions & 2 deletions examples/scaleup/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ fn main() {
let timer = Instant::now();
let scaled = tiny.resize(32, 32, filter);
println!("Scaled by {} in {}", name, Elapsed::from(&timer));
let mut output = File::create(&format!("up2-{name}.png")).unwrap();
let mut output = File::create(format!("up2-{name}.png")).unwrap();
scaled.write_to(&mut output, ImageFormat::Png).unwrap();

let timer = Instant::now();
let scaled = tiny.resize(48, 48, filter);
println!("Scaled by {} in {}", name, Elapsed::from(&timer));
let mut output = File::create(&format!("up3-{name}.png")).unwrap();
let mut output = File::create(format!("up3-{name}.png")).unwrap();
scaled.write_to(&mut output, ImageFormat::Png).unwrap();
}
}

0 comments on commit 970a2f2

Please sign in to comment.