Skip to content

Commit 6599efc

Browse files
committed
remove duplicate std::Error impls
1 parent d063f37 commit 6599efc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/de/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,6 @@ pub enum Error {
7777
CustomErrorWithMessage(heapless::String<64>),
7878
}
7979

80-
#[cfg(feature = "std")]
81-
impl ::std::error::Error for Error {
82-
fn description(&self) -> &str {
83-
""
84-
}
85-
}
86-
8780
impl serde::de::StdError for Error {}
8881

8982
pub(crate) struct Deserializer<'b> {

src/ser/mod.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ impl From<u8> for Error {
4040
}
4141
}
4242

43-
#[cfg(feature = "std")]
44-
impl ::std::error::Error for Error {
45-
fn description(&self) -> &str {
46-
""
47-
}
48-
}
49-
5043
impl serde::ser::StdError for Error {}
5144

5245
impl fmt::Display for Error {

0 commit comments

Comments
 (0)