From a31d82fec27433f608b5ede97c37dfb18463c1cb Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 24 Sep 2020 18:05:31 +1000 Subject: [PATCH] agent/oci: Don't use deprecated Error::description() method We shouldn't use it, and we don't need to implement it. fixes #791 Signed-off-by: David Gibson --- src/agent/oci/src/serialize.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/agent/oci/src/serialize.rs b/src/agent/oci/src/serialize.rs index 95466c47d5..891ecd5553 100644 --- a/src/agent/oci/src/serialize.rs +++ b/src/agent/oci/src/serialize.rs @@ -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),