Fix clippy for rust 1.52

There are new lints are added in clippy for rust 1.52

Signed-off-by: Tim Zhang <tim@hyper.sh>
This commit is contained in:
Tim Zhang
2021-05-21 00:45:27 +08:00
parent 5bb27a2692
commit 5aa7e6c90e
5 changed files with 14 additions and 16 deletions

View File

@@ -76,6 +76,7 @@ impl fmt::Display for Error {
impl StdError for Error {
fn cause(&self) -> Option<&dyn StdError> {
#[allow(clippy::manual_map)]
match self.cause {
Some(ref x) => Some(&**x),
None => None,