Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
organizedgrime committed Jun 5, 2024
1 parent 7aebb6e commit 84cea5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/on_disk/config/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ impl GlobalConfig {
Some(api_key) => {
let fingerprint = api_key.fingerprint().to_string();
let public_key_pem = api_key.public_key();
let public_key = VerifyingKey::from_spki(&public_key_pem)
let public_key = VerifyingKey::from_spki(public_key_pem)
.map_err(|_| NativeError::Custom("Decode SPKI".into()))?;
Ok((public_key, fingerprint))
}
None => {
error!("No known user key with that name locally or remotely.");
Err(NativeError::Custom("missing usrkey".into()).into())
Err(NativeError::Custom("missing usrkey".into()))
}
}
}
Expand Down

0 comments on commit 84cea5f

Please sign in to comment.