keyfork-shard: fixup usage of smex

This commit is contained in:
Ryan Heywood 2024-02-19 05:40:43 -05:00
parent b75d45876a
commit d51ee36ace
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
3 changed files with 3 additions and 3 deletions

View File

@ -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(())
}

View File

@ -20,7 +20,7 @@ fn run() -> Result<()> {
let mut bytes = vec![];
remote_decrypt(&mut bytes)?;
print!("{}", smex::encode(&bytes));
print!("{}", smex::encode(bytes));
Ok(())
}

View File

@ -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(())
}