diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 14:44:53 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-12-18 16:21:46 +0100 |
commit | 7a6701001a9408a8eae6faedc91b5d2c42611c5c (patch) | |
tree | 21c0080676d791996043ddc133e0fa96879c144e /openpgp-ffi/src/parse | |
parent | 1e19e63f9a717df2c3dbb50b18665844e64cef9a (diff) |
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.
Diffstat (limited to 'openpgp-ffi/src/parse')
-rw-r--r-- | openpgp-ffi/src/parse/stream.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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() }; } |