Skip to content

Commit

Permalink
Fix Rust 2021 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lilith committed Mar 29, 2021
1 parent 7c76746 commit 1f6dc67
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions imageflow_core/src/codecs/pngquant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ impl PngquantEncoder {
a: input_row[i * 4 + 3],
}
}
};
}
convert_bgra32
},
PixelFormat::Bgr32 => {
Expand All @@ -115,7 +115,7 @@ impl PngquantEncoder {
a: 255,
}
}
};
}
convert_bgr32
},
PixelFormat::Bgr24 => {
Expand All @@ -130,7 +130,7 @@ impl PngquantEncoder {
a: 255,
}
}
};
}
convert_bgr24
},
PixelFormat::Gray8 => {
Expand All @@ -145,7 +145,7 @@ impl PngquantEncoder {
a: 255,
}
}
};
}
convert_gray8
},
};
Expand Down
2 changes: 1 addition & 1 deletion imageflow_core/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ impl FlowError {

pub fn panic(&self) -> !{
eprintln!("{}", self);
panic!(format!("{}", self));
panic!("{}", self);
}

/// Create a FlowError (InvalidJson) from ::serde_json::Error
Expand Down

0 comments on commit 1f6dc67

Please sign in to comment.