diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-27 10:26:07 +0200 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-04-28 11:39:13 +0200 |
commit | 9d4b91098d37549347fdfff9513b629fcd3d973f (patch) | |
tree | ca57b1ef8d2bc7702da081ed6938364859ab7693 /openpgp-ffi | |
parent | c72e1b0855795d2fcd914157e1bd64c66bd6b997 (diff) |
openpgp: Convert `Cert::from_packet_pile` into `TryFrom`
- Drop `Cert::from_packet_pile`.
- Fixes #462.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/src/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/cert.rs b/openpgp-ffi/src/cert.rs index 16350cd1..4a7c2238 100644 --- a/openpgp-ffi/src/cert.rs +++ b/openpgp-ffi/src/cert.rs @@ -68,7 +68,7 @@ pub struct Cert(openpgp::Cert); fn pgp_cert_from_packet_pile(errp: Option<&mut *mut crate::error::Error>, m: *mut PacketPile) -> Maybe<Cert> { - openpgp::Cert::from_packet_pile(m.move_from_raw()).move_into_raw(errp) + openpgp::Cert::try_from(m.move_from_raw()).move_into_raw(errp) } /// Returns the first Cert found in the packet parser. |