Fix warnings about deprecated Error::description

This commit is contained in:
Sean McArthur
2020-01-29 15:15:58 -08:00
parent 5020ff0933
commit 74d02933a5
3 changed files with 24 additions and 50 deletions

View File

@@ -132,14 +132,4 @@ impl fmt::Display for Error {
}
}
impl error::Error for Error {
fn description(&self) -> &str {
use self::Kind::*;
match self.kind {
Io(ref e) => error::Error::description(e),
Proto(ref reason) => reason.description(),
User(ref user) => user.description(),
}
}
}
impl error::Error for Error {}