diff --git a/src/error.rs b/src/error.rs index 9e904a3..1f52424 100644 --- a/src/error.rs +++ b/src/error.rs @@ -58,7 +58,7 @@ impl StdError for ErrorKind { } } - fn cause(&self) -> Option<&dyn error::Error> { + fn cause(&self) -> Option<&error::Error> { match *self { ErrorKind::Io(ref err) => Some(err), ErrorKind::InvalidUtf8Encoding(_) => None,