diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-05 14:39:20 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-05 17:54:20 +0100 |
commit | 518162d959a10c334df874d4b9a2ace108a15320 (patch) | |
tree | f8f2dc94b4a9d7be60c31bb66cb4173d4b544112 /ffi-macros | |
parent | 59faa3eacf0a6e0379d9ff6a2f3176658f97d1e2 (diff) |
ffi-macros: Make trait RefMutRaw more flexible.
Diffstat (limited to 'ffi-macros')
-rw-r--r-- | ffi-macros/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs index d398e32d..ad237238 100644 --- a/ffi-macros/src/lib.rs +++ b/ffi-macros/src/lib.rs @@ -430,7 +430,7 @@ fn derive_conversion_functions(mut st: syn::ItemStruct, } use RefMutRaw; - impl RefMutRaw<#wrapped> for *mut #wrapper { + impl RefMutRaw<&'static mut #wrapped> for *mut #wrapper { fn ref_mut_raw(self) -> &'static mut #wrapped { if self.is_null() { panic!("FFI contract violation: Parameter is NULL"); |