Skip to content

Commit

Permalink
fixup clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
baloo committed Jan 25, 2024
1 parent f1ba43b commit 9284ab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hsmauth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -153,7 +153,7 @@ impl HsmAuth {
pub fn delete_credential(&mut self, mgmkey: Option<MgmKey>, label: Label) -> Result<()> {
Transaction::new(&mut self.client.card)?.delete_credential(
self.client.version,
mgmkey.unwrap_or(MgmKey::default()),
mgmkey.unwrap_or_default(),
label,
)
}
Expand Down
1 change: 1 addition & 0 deletions src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 9284ab5

Please sign in to comment.