diff --git a/src/ctap/mod.rs b/src/ctap/mod.rs index 8b90b68..748afe6 100644 --- a/src/ctap/mod.rs +++ b/src/ctap/mod.rs @@ -1032,7 +1032,7 @@ where fn process_get_info(&self) -> Result { let has_always_uv = self.persistent_store.has_always_uv()?; - #[cfg(feature = "with_ctap1")] + #[cfg_attr(not(feature = "with_ctap1"), allow(unused_mut))] let mut versions = vec![ String::from(FIDO2_VERSION_STRING), String::from(FIDO2_1_VERSION_STRING), @@ -1043,11 +1043,6 @@ where versions.insert(0, String::from(U2F_VERSION_STRING)) } } - #[cfg(not(feature = "with_ctap1"))] - let versions = vec![ - String::from(FIDO2_VERSION_STRING), - String::from(FIDO2_1_VERSION_STRING), - ]; let mut options_map = BTreeMap::new(); options_map.insert(String::from("rk"), true); options_map.insert(