diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-11-22 14:26:14 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-22 14:26:14 +0100 |
commit | ced195eb1a7d9151640f1ffacd890839a55b8680 (patch) | |
tree | 53001af1ba91361bfa2ed4b585686781983c6603 /openpgp/src/parse | |
parent | 28be944bd9f6548b2eee5fc222ffeb52c9d2f8aa (diff) |
openpgp: Make conversions into Key<SecretParts, _> fallible.
- Fixes #380.
Diffstat (limited to 'openpgp/src/parse')
-rw-r--r-- | openpgp/src/parse/stream.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index bab21e4c..48c1fd2a 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -1911,7 +1911,8 @@ mod test { { let key = tpk.keys_all().signing_capable().nth(0).unwrap().2; let keypair = - key.clone().mark_parts_secret().into_keypair().unwrap(); + key.clone().mark_parts_secret().unwrap() + .into_keypair().unwrap(); let m = Message::new(&mut buf); let signer = Signer::new(m, keypair).build().unwrap(); |