Skip to content

Commit

Permalink
der: use core::error::Error
Browse files Browse the repository at this point in the history
Allows the `Error` trait to be used on `no_std` platforms
  • Loading branch information
tarcieri committed Oct 8, 2024
1 parent 896142c commit d024772
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions der/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ impl Error {
}
}

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

impl fmt::Display for Error {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
Expand Down

0 comments on commit d024772

Please sign in to comment.