Skip to content

Commit

Permalink
impl Error for DecodeErrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel authored and etemesi254 committed Mar 10, 2023
1 parent 3cad66b commit 959c14e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zune-jpeg/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ pub enum DecodeErrors
/// Large image dimensions(Corrupted data)?
LargeDimensions(usize)
}

impl std::error::Error for DecodeErrors {}

impl From<&'static str> for DecodeErrors
{
fn from(data: &'static str) -> Self
Expand Down

0 comments on commit 959c14e

Please sign in to comment.