From e0f43950e42b04205c1f31fbbefd370606f37a29 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 29 Jan 2019 18:40:04 +0100 Subject: openpgp-ffi: Improve the derived serialization function. - Using absolute paths allows us to use types without having the user to 'use' them. --- ffi-macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ffi-macros/src/lib.rs') 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) - -> 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) } -- cgit v1.2.3