From 7a6701001a9408a8eae6faedc91b5d2c42611c5c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 18 Dec 2019 14:44:53 +0100 Subject: openpgp: Make type aliases for keys pub(crate). - They can still be used as a convenience, but the documentation will refer to them as their expanded counterparts. - This makes the structure of they Key<_, _> type more visible. --- openpgp-ffi/src/parse/stream.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'openpgp-ffi/src/parse') diff --git a/openpgp-ffi/src/parse/stream.rs b/openpgp-ffi/src/parse/stream.rs index 70319a40..f3b5b32f 100644 --- a/openpgp-ffi/src/parse/stream.rs +++ b/openpgp-ffi/src/parse/stream.rs @@ -199,8 +199,9 @@ fn $fn_name<'a>( } if let Some(mut p) = key_r { *unsafe { p.as_mut() } = { - let key : &self::openpgp::packet::key::UnspecifiedKey - = (*key).into(); + let key = key + .mark_parts_unspecified_ref() + .mark_role_unspecified_ref(); key.move_into_raw() }; } -- cgit v1.2.3