actix-web: clippy

This commit is contained in:
Aode (lion) 2021-11-29 19:40:35 -06:00
parent 98a788dade
commit 772c7f6ecd

View file

@ -413,8 +413,8 @@ where
} }
} }
async fn verify<'a, V, E>( async fn verify<V, E>(
verifier: &'a V, verifier: &V,
config: Config, config: Config,
algorithm: Option<Algorithm>, algorithm: Option<Algorithm>,
key_id: String, key_id: String,
@ -434,9 +434,7 @@ where
+ 'static, + 'static,
{ {
match algorithm { match algorithm {
None | Some(Algorithm::Hs2019 | Algorithm::Deprecated(DeprecatedAlgorithm::RsaSha256)) => { None | Some(Algorithm::Hs2019 | Algorithm::Deprecated(DeprecatedAlgorithm::RsaSha256)) => {}
()
}
Some(other) => return Err(VerifyError::Algorithm(other.to_string()).into()), Some(other) => return Err(VerifyError::Algorithm(other.to_string()).into()),
}; };