diff options
Diffstat (limited to 'rust/src/relocation.rs')
| -rw-r--r-- | rust/src/relocation.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/rust/src/relocation.rs b/rust/src/relocation.rs index f9cbb3c5..47ec2ac0 100644 --- a/rust/src/relocation.rs +++ b/rust/src/relocation.rs @@ -227,9 +227,11 @@ unsafe impl CoreOwnedArrayProvider for Relocation { } } -unsafe impl<'a> CoreArrayWrapper<'a> for Relocation { - type Wrapped = Relocation; - unsafe fn wrap_raw(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped { +unsafe impl CoreArrayWrapper for Relocation { + // TODO there is nothing blocking the returned value from out-living the + // array, change it to &_ or Guard? + type Wrapped<'a> = Relocation; + unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> { Relocation(*raw) } } |
