From 518162d959a10c334df874d4b9a2ace108a15320 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 5 Feb 2019 14:39:20 +0100 Subject: ffi-macros: Make trait RefMutRaw more flexible. --- openpgp-ffi/src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openpgp-ffi') diff --git a/openpgp-ffi/src/common.rs b/openpgp-ffi/src/common.rs index ba2ce7d2..e6c67db4 100644 --- a/openpgp-ffi/src/common.rs +++ b/openpgp-ffi/src/common.rs @@ -244,7 +244,7 @@ pub(crate) trait RefRaw { /// Moves a mutable reference to an object from C to Rust. pub(crate) trait RefMutRaw { /// Moves this mutable reference to an object from C to Rust. - fn ref_mut_raw(self) -> &'static mut T; + fn ref_mut_raw(self) -> T; } /// Moves an object from Rust to C, releasing ownership. -- cgit v1.2.3