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>(
verifier: &'a V,
async fn verify<V, E>(
verifier: &V,
config: Config,
algorithm: Option<Algorithm>,
key_id: String,
@ -434,9 +434,7 @@ where
+ 'static,
{
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()),
};