summaryrefslogtreecommitdiffstats
path: root/autocrypt
diff options
context:
space:
mode:
authorWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-27 10:26:07 +0200
committerWiktor Kwapisiewicz <wiktor@metacode.biz>2020-04-28 11:39:13 +0200
commit9d4b91098d37549347fdfff9513b629fcd3d973f (patch)
treeca57b1ef8d2bc7702da081ed6938364859ab7693 /autocrypt
parentc72e1b0855795d2fcd914157e1bd64c66bd6b997 (diff)
openpgp: Convert `Cert::from_packet_pile` into `TryFrom`
- Drop `Cert::from_packet_pile`. - Fixes #462.
Diffstat (limited to 'autocrypt')
-rw-r--r--autocrypt/src/lib.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/autocrypt/src/lib.rs b/autocrypt/src/lib.rs
index 479aeb8d..f467ef29 100644
--- a/autocrypt/src/lib.rs
+++ b/autocrypt/src/lib.rs
@@ -13,6 +13,7 @@
use base64;
+use std::convert::TryFrom;
use std::io;
use std::io::prelude::*;
use std::io::BufReader;
@@ -146,7 +147,7 @@ impl AutocryptHeader {
}
}
- let cleaned_cert = Cert::from_packet_pile(acc.into())?;
+ let cleaned_cert = Cert::try_from(acc)?;
Ok(AutocryptHeader {
header_type: AutocryptHeaderType::Sender,