Skip to content

Commit

Permalink
Remove DecodeError::Io (#78)
Browse files Browse the repository at this point in the history
This wasn't used as we don't do any I/O during PNG decoding.
  • Loading branch information
waywardmonkeys authored Dec 7, 2024
1 parent 2195296 commit 3dc63ec
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/scale/bitmap/png.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::io::Error> for DecodeError {
fn from(e: std::io::Error) -> Self {
Self::Io(e)
}
}

impl From<yazi::Error> for DecodeError {
Expand Down

0 comments on commit 3dc63ec

Please sign in to comment.