Fix clippy lints (#387)
This commit is contained in:
@@ -180,10 +180,9 @@ impl error::Error for Error {
|
||||
|
||||
impl error::Error for Transport {
|
||||
fn source(&self) -> Option<&(dyn error::Error + 'static)> {
|
||||
match &self.source {
|
||||
Some(s) => Some(s.as_ref()),
|
||||
None => None,
|
||||
}
|
||||
self.source
|
||||
.as_ref()
|
||||
.map(|s| s.as_ref() as &(dyn error::Error + 'static))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user