diff --git a/crates/ctap2-proto/src/authenticator/assertion/get.rs b/crates/ctap2-proto/src/authenticator/assertion/get.rs index 095f2e6..09018a4 100644 --- a/crates/ctap2-proto/src/authenticator/assertion/get.rs +++ b/crates/ctap2-proto/src/authenticator/assertion/get.rs @@ -1,5 +1,5 @@ -use crate::{authenticator::client_pin::AuthProtocolVersion, extensions}; use crate::Sha256Hash; +use crate::{authenticator::client_pin::AuthProtocolVersion, extensions}; use fido_common::credential::public_key; use std::{collections::BTreeMap, usize}; diff --git a/crates/ctap2-proto/src/authenticator/client_pin/mod.rs b/crates/ctap2-proto/src/authenticator/client_pin/mod.rs index a674826..41694e8 100644 --- a/crates/ctap2-proto/src/authenticator/client_pin/mod.rs +++ b/crates/ctap2-proto/src/authenticator/client_pin/mod.rs @@ -1,6 +1,6 @@ +use bounded_integer::BoundedUsize; use std::collections::BTreeSet; -use bounded_integer::BoundedUsize; #[derive(Clone, Copy, PartialEq, Eq, Hash, Debug)] pub enum AuthProtocolVersion { diff --git a/crates/ctap2-proto/src/authenticator/config.rs b/crates/ctap2-proto/src/authenticator/config.rs index 8acdd5c..4a6e00b 100644 --- a/crates/ctap2-proto/src/authenticator/config.rs +++ b/crates/ctap2-proto/src/authenticator/config.rs @@ -1,4 +1,4 @@ -use std::collections::{BTreeMap}; +use std::collections::BTreeMap; use super::client_pin::AuthProtocolVersion; @@ -38,7 +38,7 @@ pub enum Request<'a> { VendorPrototype { vendor_command_id: usize, params: &'a BTreeMap, Vec>, /* TODO: Is the character space of keys - * restricted to UTF-8? */ + * restricted to UTF-8? */ pin_uv_auth_protocol: AuthProtocolVersion, pin_uv_auth_param: &'a [u8], // TODO: Is using a more specific type possible? }, diff --git a/crates/ctap2-proto/src/authenticator/mod.rs b/crates/ctap2-proto/src/authenticator/mod.rs index 5a1dbbc..ef27303 100644 --- a/crates/ctap2-proto/src/authenticator/mod.rs +++ b/crates/ctap2-proto/src/authenticator/mod.rs @@ -8,4 +8,3 @@ pub mod credential; pub mod device; pub mod reset; pub mod selection; - diff --git a/crates/ctap2-proto/src/lib.rs b/crates/ctap2-proto/src/lib.rs index 11d56db..349d78d 100644 --- a/crates/ctap2-proto/src/lib.rs +++ b/crates/ctap2-proto/src/lib.rs @@ -10,12 +10,11 @@ pub mod prelude { }; pub use fido_common::Sha256Hash; } +use prelude::*; pub mod authenticator; pub mod extensions; -use prelude::*; - /// Defines the raw CTAP operations pub trait Ctap2_2Authenticator { #[allow(clippy::missing_errors_doc)]