Merge pull request #792 from dgibson/bug791

agent/oci: Don't use deprecated Error::description() method
This commit is contained in:
Christophe de Dinechin
2020-09-24 11:49:06 +02:00
committed by GitHub

View File

@@ -29,13 +29,6 @@ impl Display for Error {
}
impl error::Error for Error {
fn description(&self) -> &str {
match *self {
Error::Io(ref e) => e.description(),
Error::Json(ref e) => e.description(),
}
}
fn cause(&self) -> Option<&dyn error::Error> {
match *self {
Error::Io(ref e) => Some(e),