Fix warnings about deprecated Error::description
This commit is contained in:
12
src/error.rs
12
src/error.rs
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user