Skip to content

Commit c277e89

Browse files
committed
Remove implementation of deprecated Error::description function
1 parent 6876816 commit c277e89

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/error.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,6 @@ pub enum Error {
2222
}
2323

2424
impl ::std::error::Error for Error {
25-
fn description(&self) -> &str {
26-
match *self {
27-
Error::Io(ref e) => e.description(),
28-
Error::Unexpected(_) => "something unexpected",
29-
}
30-
}
31-
3225
fn cause(&self) -> Option<&dyn (::std::error::Error)> {
3326
match *self {
3427
Error::Io(ref e) => Some(e),

0 commit comments

Comments
 (0)