Skip to content

Commit

Permalink
fix: format as_str
Browse files Browse the repository at this point in the history
  • Loading branch information
marktoda committed Jan 22, 2025
1 parent d968519 commit d169819
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ impl Key {
match &self.kind {
KeyType::PrivateKey { value } => Ok(value.clone()),
KeyType::EncryptedKey { value, nonce } => {
let password =
prompt_password(format!("Enter decryption password for {}: ", self.name))?;
let password = prompt_password(
format!("Enter decryption password for {}: ", self.name).as_str(),
)?;
let key = Self::derive_key(&password);
let cipher = Aes256Gcm::new(&key.into());
let nonce_bytes = BASE64.decode(nonce)?;
Expand Down

0 comments on commit d169819

Please sign in to comment.