Skip to content

Commit

Permalink
Feature-gate the Error impl
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel authored and etemesi254 committed Mar 10, 2023
1 parent 959c14e commit 712360e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zune-jpeg/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pub enum DecodeErrors
LargeDimensions(usize)
}

#[cfg(feature = "std")]
impl std::error::Error for DecodeErrors {}

impl From<&'static str> for DecodeErrors
Expand Down

0 comments on commit 712360e

Please sign in to comment.