summaryrefslogtreecommitdiffstats
path: root/openpgp-ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-02-05 14:39:20 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-02-05 17:54:20 +0100
commit518162d959a10c334df874d4b9a2ace108a15320 (patch)
treef8f2dc94b4a9d7be60c31bb66cb4173d4b544112 /openpgp-ffi
parent59faa3eacf0a6e0379d9ff6a2f3176658f97d1e2 (diff)
ffi-macros: Make trait RefMutRaw more flexible.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r--openpgp-ffi/src/common.rs2
1 files changed, 1 insertions, 1 deletions
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<T> {
/// Moves a mutable reference to an object from C to Rust.
pub(crate) trait RefMutRaw<T> {
/// 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.