diff options
Diffstat (limited to 'rust/src/custombinaryview.rs')
| -rw-r--r-- | rust/src/custombinaryview.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/rust/src/custombinaryview.rs b/rust/src/custombinaryview.rs index c69bad39..898102d6 100644 --- a/rust/src/custombinaryview.rs +++ b/rust/src/custombinaryview.rs @@ -298,12 +298,10 @@ unsafe impl CoreOwnedArrayProvider for BinaryViewType { } unsafe impl CoreArrayWrapper for BinaryViewType { - // TODO there is nothing blocking the returned value from out-living the - // array, change it to &_ or Guard? - type Wrapped<'a> = BinaryViewType; + type Wrapped<'a> = Guard<'a, BinaryViewType>; unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> { - BinaryViewType(*raw) + Guard::new(BinaryViewType(*raw), &()) } } |
