summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-12 14:19:50 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-12 14:24:24 +0100
commit7ec34a916033917f2e1aa3eec03ec3175d50b39c (patch)
treefe2ddf54568aee402d2d3412253e256ade97b606 /ffi-macros
parente50d67381e4eeeeafea3c06d37361ab47021a58f (diff)
openpgp-ffi: Improve derived functions.
- Use an absolute path for the 'io' module.
Diffstat (limited to 'ffi-macros')
-rw-r--r--ffi-macros/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs
index 15027dd5..a71562c1 100644
--- a/ffi-macros/src/lib.rs
+++ b/ffi-macros/src/lib.rs
@@ -730,7 +730,7 @@ fn derive_parse(span: proc_macro2::Span, prefix: &str, name: &str,
/// Parses an object from the given reader.
#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
fn #from_reader(errp: Option<&mut *mut ::error::Error>,
- reader: *mut super::io::Reader)
+ reader: *mut ::io::Reader)
-> ::Maybe<#wrapper> {
use ::sequoia_openpgp::parse::Parse;
use ::RefMutRaw;
@@ -779,7 +779,7 @@ fn derive_serialize(span: proc_macro2::Span, prefix: &str, name: &str,
#[::sequoia_ffi_macros::extern_fn] #[no_mangle] pub extern "system"
fn #ident (errp: Option<&mut *mut ::error::Error>,
this: *const #wrapper,
- writer: *mut super::io::Writer)
+ writer: *mut ::io::Writer)
-> ::error::Status {
use ::sequoia_openpgp::serialize::Serialize;
use ::RefRaw;