actix-web: clippy
This commit is contained in:
parent
98a788dade
commit
772c7f6ecd
|
@ -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()),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue