diff options
Diffstat (limited to 'openpgp/examples/decrypt-with.rs')
-rw-r--r-- | openpgp/examples/decrypt-with.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/examples/decrypt-with.rs b/openpgp/examples/decrypt-with.rs index 3d6118f0..3828e47f 100644 --- a/openpgp/examples/decrypt-with.rs +++ b/openpgp/examples/decrypt-with.rs @@ -63,8 +63,7 @@ impl Helper { { // This only works for unencrypted secret keys. if let Ok(keypair) = key.clone().into_keypair() { - keys.insert(key.fingerprint().to_keyid(), - keypair); + keys.insert(key.keyid(), keypair); } } } |