Skip to content

Commit

Permalink
Fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-nitrokey committed Dec 17, 2024
1 parent 3095b8c commit 0ac88d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/authenticator/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl<'a> Authenticator<'a, NoPin> {
}
}

impl<'a, P: PinState> Authenticator<'a, P> {
impl<P: PinState> Authenticator<'_, P> {
fn shared_secret(&mut self) -> &SharedSecret {
self.shared_secret.get_or_insert_with(|| {
let reply = self.ctap2.exec(ClientPin::new(2, 2)).unwrap();
Expand All @@ -57,7 +57,7 @@ impl<'a, P: PinState> Authenticator<'a, P> {
}
}

impl<'a> Authenticator<'a, Pin> {
impl Authenticator<'_, Pin> {
fn get_pin_token(&mut self, permissions: u8, rp_id: Option<String>) -> PinToken {
let mut hasher = Sha256::new();
hasher.update(&self.pin.0);
Expand Down

0 comments on commit 0ac88d4

Please sign in to comment.