diff --git a/src/hsmauth.rs b/src/hsmauth.rs index 9ac41de9..dc296cba 100644 --- a/src/hsmauth.rs +++ b/src/hsmauth.rs @@ -140,7 +140,7 @@ impl HsmAuth { ) -> Result<()> { Transaction::new(&mut self.client.card)?.put_credential( self.client.version, - mgmkey.unwrap_or(MgmKey::default()), + mgmkey.unwrap_or_default(), label, password, enc_key, @@ -153,7 +153,7 @@ impl HsmAuth { pub fn delete_credential(&mut self, mgmkey: Option, label: Label) -> Result<()> { Transaction::new(&mut self.client.card)?.delete_credential( self.client.version, - mgmkey.unwrap_or(MgmKey::default()), + mgmkey.unwrap_or_default(), label, ) } diff --git a/src/transaction.rs b/src/transaction.rs index f0b77f7f..aa8cee5f 100644 --- a/src/transaction.rs +++ b/src/transaction.rs @@ -641,6 +641,7 @@ impl<'tx> Transaction<'tx> { } /// Adds a credential to YubiHSM Auth applet + #[allow(clippy::too_many_arguments)] // One argument over the limit of 7 pub fn put_credential( &mut self, version: Version,