Skip to content

Commit

Permalink
Merge pull request #2287 from image-rs/2024-07-21-cleanup-clippy
Browse files Browse the repository at this point in the history
Fix clippy lint in test suite
  • Loading branch information
HeroicKatora authored Jul 21, 2024
2 parents 7322174 + 970a2f2 commit e176cd4
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 e176cd4

Please sign in to comment.