Remove dyn

This commit is contained in:
Leonard Kramer 2020-01-04 20:31:11 +00:00 committed by Josh Matthews
parent c48a064bad
commit 3a3857ff38
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ impl StdError for ErrorKind {
} }
} }
fn cause(&self) -> Option<&dyn error::Error> { fn cause(&self) -> Option<&error::Error> {
match *self { match *self {
ErrorKind::Io(ref err) => Some(err), ErrorKind::Io(ref err) => Some(err),
ErrorKind::InvalidUtf8Encoding(_) => None, ErrorKind::InvalidUtf8Encoding(_) => None,