Skip to content

Commit

Permalink
run cargo fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Schoolderman <[email protected]>
  • Loading branch information
tweedegolf-marc committed Sep 4, 2024
1 parent 7be1f3b commit 6a48d7c
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions tsp/src/vault.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ impl Vault {
let decryption_key = LocalKey::from_secret_bytes(KeyAlg::X25519, private.as_ref())?;
let decryption_key_name = format!("{id}#decryption-key");
if let Err(e) = conn
.insert_key(
&decryption_key_name,
&decryption_key,
None,
None,
None,
)
.insert_key(&decryption_key_name, &decryption_key, None, None, None)
.await
{
if e.kind() != ErrorKind::Duplicate {
Expand All @@ -97,13 +91,7 @@ impl Vault {
LocalKey::from_public_bytes(KeyAlg::Ed25519, export.public_sigkey.as_ref())?;
let verification_key_name = format!("{id}#verification-key");
if let Err(e) = conn
.insert_key(
&verification_key_name,
&verification_key,
None,
None,
None,
)
.insert_key(&verification_key_name, &verification_key, None, None, None)
.await
{
if e.kind() != ErrorKind::Duplicate {
Expand All @@ -115,13 +103,7 @@ impl Vault {
LocalKey::from_public_bytes(KeyAlg::X25519, export.public_enckey.as_ref())?;
let encryption_key_name = format!("{id}#encryption-key");
if let Err(e) = conn
.insert_key(
&encryption_key_name,
&encryption_key,
None,
None,
None,
)
.insert_key(&encryption_key_name, &encryption_key, None, None, None)
.await
{
if e.kind() != ErrorKind::Duplicate {
Expand Down

0 comments on commit 6a48d7c

Please sign in to comment.