diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-20 10:32:51 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-20 10:34:40 +0100 |
commit | a1230b3a6c31d77fff4626814de4a681e2f2a3a0 (patch) | |
tree | 58ec2fd279c1eb57c022390f04377b7491f8ee27 /tool/src/commands/decrypt.rs | |
parent | 312ad42659b6b16983981dfbc891972cd0ff9e01 (diff) |
openpgp: Use the new framework for Cert::userid.
- Fixes #414.
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 4c378a34..a925a413 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().nth(0) { + let hint = match tsk.userids().primary(None) { Some(uid) => format!("{} ({})", uid.userid(), KeyID::from(tsk.fingerprint())), None => format!("{}", KeyID::from(tsk.fingerprint())), |