pngenc: Allow using deprecated compression levels

This commit is contained in:
Sebastian Dröge 2022-09-06 19:33:55 +03:00
parent ef78498dc2
commit 81ee30771c

View file

@ -58,6 +58,7 @@ pub(crate) enum FilterType {
} }
impl From<CompressionLevel> for png::Compression { impl From<CompressionLevel> for png::Compression {
#[allow(deprecated)]
fn from(value: CompressionLevel) -> Self { fn from(value: CompressionLevel) -> Self {
match value { match value {
CompressionLevel::Default => png::Compression::Default, CompressionLevel::Default => png::Compression::Default,