diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-01-29 18:40:04 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-01-29 18:40:04 +0100 |
commit | e0f43950e42b04205c1f31fbbefd370606f37a29 (patch) | |
tree | 7ef39565f980719f4bc6540394807f20692fd50b /ffi-macros/src | |
parent | 6e1921660b8eb8c86b7073a34e9bd779388694bd (diff) |
openpgp-ffi: Improve the derived serialization function.
- Using absolute paths allows us to use types without having the
user to 'use' them.
Diffstat (limited to 'ffi-macros/src')
-rw-r--r-- | ffi-macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs index 1215875f..70dd89c1 100644 --- a/ffi-macros/src/lib.rs +++ b/ffi-macros/src/lib.rs @@ -707,8 +707,8 @@ fn derive_serialize(span: proc_macro2::Span, prefix: &str, name: &str, #[::ffi_catch_abort] #[no_mangle] pub extern "system" fn #ident (errp: Option<&mut *mut ::error::Error>, tsk: *const #wrapper, - writer: *mut Box<Write>) - -> Status { + writer: *mut Box<::std::io::Write>) + -> ::error::Status { let writer = ffi_param_ref_mut!(writer); tsk.ref_raw().serialize(writer).move_into_raw(errp) } |