diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-22 11:39:11 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-22 11:39:11 +0100 |
commit | 84d2fb9a3b9e5bdfacb429c7ac2f6d9379c4a8ce (patch) | |
tree | 5150a7714ef155ca9fb0c0c29d43ab7d4f16fb9a /tool/src/commands/decrypt.rs | |
parent | b295a5e6c81d040e64c1fe53a14854df591d5fbe (diff) |
openpgp: Rework default component lookup functions.
Diffstat (limited to 'tool/src/commands/decrypt.rs')
-rw-r--r-- | tool/src/commands/decrypt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/src/commands/decrypt.rs b/tool/src/commands/decrypt.rs index a925a413..5557bd25 100644 --- a/tool/src/commands/decrypt.rs +++ b/tool/src/commands/decrypt.rs @@ -44,7 +44,7 @@ impl<'a> Helper<'a> { let mut identities: HashMap<KeyID, Fingerprint> = HashMap::new(); let mut hints: HashMap<KeyID, String> = HashMap::new(); for tsk in secrets { - let hint = match tsk.userids().primary(None) { + let hint = match tsk.primary_userid(None) { Some(uid) => format!("{} ({})", uid.userid(), KeyID::from(tsk.fingerprint())), None => format!("{}", KeyID::from(tsk.fingerprint())), |