From c3ab78124f0afb20a20c00d179496dab21aeda31 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 7 Dec 2024 14:54:40 +0700 Subject: [PATCH] Remove `DecodeError::Io` This wasn't used as we don't do any I/O during PNG decoding. --- src/scale/bitmap/png.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/scale/bitmap/png.rs b/src/scale/bitmap/png.rs index 5655ff1..869d1e6 100644 --- a/src/scale/bitmap/png.rs +++ b/src/scale/bitmap/png.rs @@ -26,16 +26,6 @@ pub enum DecodeError { CorruptData, /// An "end of file" was reached prematurely. UnexpectedEof, - #[cfg(feature = "std")] - /// Underlying IO error. - Io(std::io::Error), -} - -#[cfg(feature = "std")] -impl From for DecodeError { - fn from(e: std::io::Error) -> Self { - Self::Io(e) - } } impl From for DecodeError {