diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-04-10 14:07:57 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-04-26 16:55:42 +0200 |
commit | 9ef0680c4e9d83c5c3c0945a51859a99bf17dd20 (patch) | |
tree | 3702d95860d048c11eaf27e8d4ef6f2e65afeaae /openpgp-ffi/src | |
parent | a1e226f8f1418de43e577fdaa1d087b68bbb09ae (diff) |
ffi-macros: Fix the RefRaw trait.
- Do not hardcode the lifetime in the trait.
Diffstat (limited to 'openpgp-ffi/src')
-rw-r--r-- | openpgp-ffi/src/common.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp-ffi/src/common.rs b/openpgp-ffi/src/common.rs index 8c1dd2ad..6efa9ec4 100644 --- a/openpgp-ffi/src/common.rs +++ b/openpgp-ffi/src/common.rs @@ -238,7 +238,7 @@ pub(crate) trait MoveFromRaw<T> { /// Moves a reference to an object from C to Rust. pub(crate) trait RefRaw<T> { /// Moves this reference to an object from C to Rust. - fn ref_raw(self) -> &'static T; + fn ref_raw(self) -> T; } /// Moves a mutable reference to an object from C to Rust. |