From a184c62f429c2de6c9816bffef6a1a67b21d8e93 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 2 Nov 2023 01:12:28 -0500 Subject: [PATCH] keyfork-shard: ah, whitespace, why are you so cruel --- keyfork-shard/src/openpgp/smartcard.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keyfork-shard/src/openpgp/smartcard.rs b/keyfork-shard/src/openpgp/smartcard.rs index 0f561e0..a26aeff 100644 --- a/keyfork-shard/src/openpgp/smartcard.rs +++ b/keyfork-shard/src/openpgp/smartcard.rs @@ -180,9 +180,9 @@ impl DecryptionHelper for &mut SmartcardManager { .decryption() .map(|fp| Fingerprint::from_bytes(fp.as_bytes())); let pin = self.prompt_pin("Please enter PIN to unlock card")?; - let mut user = transaction.to_user_card(pin.as_str())?; + let mut user = transaction.to_user_card(pin.as_str().trim())?; let mut decryptor = - user.decryptor(&|| println!("Touch confirmation needed for decryption"))?; + user.decryptor(&|| eprintln!("Touch confirmation needed for decryption"))?; for pkesk in pkesks { if pkesk .decrypt(&mut decryptor, sym_algo)