From d51ee36ace2b2b9d5e6675150d6fe137c9f5e78b Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 19 Feb 2024 05:40:43 -0500 Subject: [PATCH] keyfork-shard: fixup usage of smex --- crates/keyfork-shard/src/bin/keyfork-shard-combine-openpgp.rs | 2 +- crates/keyfork-shard/src/bin/keyfork-shard-remote.rs | 2 +- crates/keyfork/src/cli/shard.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/keyfork-shard/src/bin/keyfork-shard-combine-openpgp.rs b/crates/keyfork-shard/src/bin/keyfork-shard-combine-openpgp.rs index 82eb167..7a78cd5 100644 --- a/crates/keyfork-shard/src/bin/keyfork-shard-combine-openpgp.rs +++ b/crates/keyfork-shard/src/bin/keyfork-shard-combine-openpgp.rs @@ -33,7 +33,7 @@ fn run() -> Result<()> { let openpgp = OpenPGP; let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery.as_deref(), messages_file)?; - print!("{}", smex::encode(&bytes)); + print!("{}", smex::encode(bytes)); Ok(()) } diff --git a/crates/keyfork-shard/src/bin/keyfork-shard-remote.rs b/crates/keyfork-shard/src/bin/keyfork-shard-remote.rs index f187176..66f7a29 100644 --- a/crates/keyfork-shard/src/bin/keyfork-shard-remote.rs +++ b/crates/keyfork-shard/src/bin/keyfork-shard-remote.rs @@ -20,7 +20,7 @@ fn run() -> Result<()> { let mut bytes = vec![]; remote_decrypt(&mut bytes)?; - print!("{}", smex::encode(&bytes)); + print!("{}", smex::encode(bytes)); Ok(()) } diff --git a/crates/keyfork/src/cli/shard.rs b/crates/keyfork/src/cli/shard.rs index 2d441b8..0fcc04e 100644 --- a/crates/keyfork/src/cli/shard.rs +++ b/crates/keyfork/src/cli/shard.rs @@ -76,7 +76,7 @@ impl ShardExec for OpenPGP { { let openpgp = keyfork_shard::openpgp::OpenPGP; let bytes = openpgp.decrypt_all_shards_to_secret(key_discovery, input)?; - write!(output, "{}", smex::encode(&bytes))?; + write!(output, "{}", smex::encode(bytes))?; Ok(()) }