summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi/src/parse
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-12-18 14:44:53 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-12-18 16:21:46 +0100
commit7a6701001a9408a8eae6faedc91b5d2c42611c5c (patch)
tree21c0080676d791996043ddc133e0fa96879c144e /openpgp-ffi/src/parse
parent1e19e63f9a717df2c3dbb50b18665844e64cef9a (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.rs5
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()
};
}