about summary refs log tree commit diff
path: root/users/edef/weave/src
diff options
context:
space:
mode:
Diffstat (limited to 'users/edef/weave/src')
-rw-r--r--users/edef/weave/src/bytes.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/users/edef/weave/src/bytes.rs b/users/edef/weave/src/bytes.rs
index c6dc2ebb4492..689b8fdfc0c8 100644
--- a/users/edef/weave/src/bytes.rs
+++ b/users/edef/weave/src/bytes.rs
@@ -3,7 +3,7 @@ use polars::export::arrow::buffer::Buffer;
 use std::ops::Deref;
 
 /// An shared `[[u8; N]]` backed by a Polars [Buffer].
-pub type FixedBytes<const N: usize> = OwningRef<Bytes, [[u8; N]]>;
+pub type FixedBytes<const N: usize> = OwningRef<'static, Bytes, [[u8; N]]>;
 
 /// Wrapper struct to make [Buffer] implement [StableAddress].
 /// TODO(edef): upstream the `impl`
@@ -13,7 +13,7 @@ pub struct Bytes(pub Buffer<u8>);
 unsafe impl StableAddress for Bytes {}
 
 impl Bytes {
-    pub fn map<U: ?Sized>(self, f: impl FnOnce(&[u8]) -> &U) -> OwningRef<Self, U> {
+    pub fn map<U: ?Sized>(self, f: impl FnOnce(&[u8]) -> &U) -> OwningRef<'static, Self, U> {
         OwningRef::new(self).map(f)
     }
 }