Fix dyn warnings
This commit is contained in:
parent
3a5c2e9d91
commit
ff8e638591
1 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ impl StdError for Error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&StdError> {
|
fn cause(&self) -> Option<&dyn StdError> {
|
||||||
match *self {
|
match *self {
|
||||||
Error::Io(ref e) => Some(e),
|
Error::Io(ref e) => Some(e),
|
||||||
Error::Tls(ref e) => Some(e),
|
Error::Tls(ref e) => Some(e),
|
||||||
|
|
@ -148,7 +148,7 @@ impl StdError for ParseError {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&StdError> {
|
fn cause(&self) -> Option<&dyn StdError> {
|
||||||
match *self {
|
match *self {
|
||||||
ParseError::Authentication(_, Some(ref e)) => Some(e),
|
ParseError::Authentication(_, Some(ref e)) => Some(e),
|
||||||
_ => None,
|
_ => None,
|
||||||
|
|
@ -173,7 +173,7 @@ impl StdError for ValidateError {
|
||||||
"Invalid character in input"
|
"Invalid character in input"
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&StdError> {
|
fn cause(&self) -> Option<&dyn StdError> {
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue