summaryrefslogtreecommitdiff
path: root/rust/src/custombinaryview.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/custombinaryview.rs')
-rw-r--r--rust/src/custombinaryview.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/custombinaryview.rs b/rust/src/custombinaryview.rs
index 956be9bd..898102d6 100644
--- a/rust/src/custombinaryview.rs
+++ b/rust/src/custombinaryview.rs
@@ -297,11 +297,11 @@ unsafe impl CoreOwnedArrayProvider for BinaryViewType {
}
}
-unsafe impl<'a> CoreArrayWrapper<'a> for BinaryViewType {
- type Wrapped = BinaryViewType;
+unsafe impl CoreArrayWrapper for BinaryViewType {
+ type Wrapped<'a> = Guard<'a, BinaryViewType>;
- unsafe fn wrap_raw(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped {
- BinaryViewType(*raw)
+ unsafe fn wrap_raw<'a>(raw: &'a Self::Raw, _context: &'a Self::Context) -> Self::Wrapped<'a> {
+ Guard::new(BinaryViewType(*raw), &())
}
}