Skip to content

Commit c646d69

Browse files
committed
Implement Error in no_std
1 parent 0faff82 commit c646d69

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packed_struct/src/packing.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ impl crate::Display for PackingError {
6565
}
6666
}
6767

68-
#[cfg(feature="std")]
69-
impl ::std::error::Error for PackingError {
68+
impl ::core::error::Error for PackingError {
7069
fn description(&self) -> &str {
7170
match *self {
7271
PackingError::InvalidValue => "Invalid value",

0 commit comments

Comments
 (0)