Skip to content

Commit 14d060c

Browse files
authored
der: use core::error::Error (#1553)
Allows the `Error` trait to be used on `no_std` platforms
1 parent 896142c commit 14d060c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

der/src/error.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ impl Error {
7070
}
7171
}
7272

73-
#[cfg(feature = "std")]
74-
impl std::error::Error for Error {}
73+
impl core::error::Error for Error {}
7574

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

0 commit comments

Comments
 (0)