Skip to content

Commit d97e566

Browse files
Allow clippy::collapsible_match
Applying the suggested fix IMHO makes the code harder to read.
1 parent 01a4be2 commit d97e566

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ctap2.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ impl<UP: UserPresence, T: TrussedRequirements> Authenticator for crate::Authenti
214214
let mut algorithm: Option<SigningAlgorithm> = None;
215215
for param in parameters.pub_key_cred_params.0.iter() {
216216
match param.alg {
217-
-7 => {
217+
-7 =>
218+
{
219+
#[allow(clippy::collapsible_match)]
218220
if algorithm.is_none() {
219221
algorithm = Some(SigningAlgorithm::P256);
220222
}

0 commit comments

Comments
 (0)