mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-05-01 13:14:33 +00:00
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 <david@gibson.dropbear.id.au>
This commit is contained in:
parent
952b9fe856
commit
45b0b4ede0
@ -29,13 +29,6 @@ impl Display for Error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl error::Error 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> {
|
fn cause(&self) -> Option<&dyn error::Error> {
|
||||||
match *self {
|
match *self {
|
||||||
Error::Io(ref e) => Some(e),
|
Error::Io(ref e) => Some(e),
|
||||||
|
Loading…
Reference in New Issue
Block a user