summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-05 16:49:17 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-05 17:58:00 +0100
commit35b03999024955f68008d9ef5287cff753ed178b (patch)
tree5aaf056c8327ddcd06e1f1aaf02812975f31528c /ffi-macros
parent575d302977af7f832a6a8f7292a00521843fdefd (diff)
openpgp-ffi: Convert pgp_writer_t.
Diffstat (limited to 'ffi-macros')
-rw-r--r--ffi-macros/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs
index 076918b0..8a3a39f1 100644
--- a/ffi-macros/src/lib.rs
+++ b/ffi-macros/src/lib.rs
@@ -775,13 +775,13 @@ fn derive_serialize(span: proc_macro2::Span, prefix: &str, name: &str,
/// Serializes this object.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
fn #ident (errp: Option<&mut *mut ::error::Error>,
- tsk: *const #wrapper,
- writer: *mut Box<::std::io::Write>)
+ this: *const #wrapper,
+ writer: *mut super::io::Writer)
-> ::error::Status {
use ::RefRaw;
+ use ::RefMutRaw;
use ::MoveResultIntoRaw;
- let writer = ffi_param_ref_mut!(writer);
- tsk.ref_raw().serialize(writer).move_into_raw(errp)
+ this.ref_raw().serialize(writer.ref_mut_raw()).move_into_raw(errp)
}
}
}