Skip to content

Commit 69863a4

Browse files
committed
Remove deprecated Error::description
1 parent 7180e6b commit 69863a4

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/error.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,6 @@ impl Display for Error {
4141
}
4242

4343
impl error::Error for Error {
44-
fn description(&self) -> &str {
45-
// Both underlying errors already impl `Error`, so we defer to their
46-
// implementations.
47-
match *self {
48-
Error::Generic(ref err) => err.description(),
49-
Error::FromUtf8(ref err) => err.description(),
50-
Error::ParseInt(ref err) => err.description(),
51-
}
52-
}
53-
5444
fn cause(&self) -> Option<&dyn error::Error> {
5545
match *self {
5646
// N.B. Both of these implicitly cast `err` from their concrete

0 commit comments

Comments
 (0)