From 1e8a4f21cf2c11bbb2e5cda74abdf7394f1efbf4 Mon Sep 17 00:00:00 2001 From: Nick Zana Date: Tue, 16 May 2023 13:07:16 -0400 Subject: [PATCH] fido_common: derive ordering for UserVerify Necessary to include UserVerify in the BTreeSet specifying the available user verification modalities. --- crates/fido-common/src/registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/fido-common/src/registry.rs b/crates/fido-common/src/registry.rs index f83e7ec..44abb47 100644 --- a/crates/fido-common/src/registry.rs +++ b/crates/fido-common/src/registry.rs @@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize}; /// > representation (in quotes), which is used in the authoritative metadata /// > for FIDO authenticators. #[repr(u32)] -#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash)] +#[derive(Debug, PartialEq, Eq, Clone, Copy, Hash, PartialOrd, Ord)] #[cfg_attr(feature = "serde", derive(Serialize, Deserialize))] pub enum UserVerify { /// > This flag MUST be set if the authenticator is able to confirm user