From 81ee30771cf8661491a98f043bb35d5c7bb197dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 6 Sep 2022 19:33:55 +0300 Subject: [PATCH] pngenc: Allow using deprecated compression levels --- video/rspng/src/pngenc/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/video/rspng/src/pngenc/mod.rs b/video/rspng/src/pngenc/mod.rs index 8fd93d41..b58ea081 100644 --- a/video/rspng/src/pngenc/mod.rs +++ b/video/rspng/src/pngenc/mod.rs @@ -58,6 +58,7 @@ pub(crate) enum FilterType { } impl From for png::Compression { + #[allow(deprecated)] fn from(value: CompressionLevel) -> Self { match value { CompressionLevel::Default => png::Compression::Default,