Skip to content

Commit

Permalink
Fix some nightly Clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTMjugador committed Jul 10, 2023
1 parent bf34db9 commit c60229c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn test_it_converts_callbacks<CBPRE, CBPOST>(
CBPOST: FnMut(&Path),
CBPRE: FnMut(&Path),
{
let png = PngData::new(&input, &opts).unwrap();
let png = PngData::new(&input, opts).unwrap();

assert_eq!(png.raw.ihdr.color_type.png_header_code(), color_type_in);
assert_eq!(png.raw.ihdr.bit_depth, bit_depth_in);
Expand All @@ -62,7 +62,7 @@ fn test_it_converts_callbacks<CBPRE, CBPOST>(

callback_post(output);

let png = match PngData::new(output, &opts) {
let png = match PngData::new(output, opts) {
Ok(x) => x,
Err(x) => {
remove_file(output).ok();
Expand Down Expand Up @@ -193,7 +193,7 @@ fn verbose_mode() {
for (i, log) in logs.into_iter().enumerate() {
let expected_prefix = expected_prefixes[i];
assert!(
log.starts_with(&expected_prefix),
log.starts_with(expected_prefix),
"logs[{}] = {:?} doesn't start with {:?}",
i,
log,
Expand Down
2 changes: 1 addition & 1 deletion tests/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ fn test_it_converts(input: &str) {
let input = PathBuf::from(input);
let opts = get_opts();

let original_data = PngData::read_file(&PathBuf::from(input)).unwrap();
let original_data = PngData::read_file(&input).unwrap();
let image = PngData::from_slice(&original_data, &opts).unwrap();
let png = Arc::try_unwrap(image.raw).unwrap();

Expand Down

0 comments on commit c60229c

Please sign in to comment.