diff --git a/arcshift/src/cell.rs b/arcshift/src/cell.rs index 843599f..cf9b4c1 100644 --- a/arcshift/src/cell.rs +++ b/arcshift/src/cell.rs @@ -130,7 +130,7 @@ impl ArcShiftCell { /// [`ArcShiftCellHandle`]. Leaking the handle will leak resources, but /// not cause undefined behaviour. #[inline] - pub fn borrow(&self) -> ArcShiftCellHandle { + pub fn borrow(&self) -> ArcShiftCellHandle<'_, T> { self.recursion.set(self.recursion.get() + 1); ArcShiftCellHandle { cell: self, diff --git a/arcshift/src/lib.rs b/arcshift/src/lib.rs index 366037a..4debab6 100644 --- a/arcshift/src/lib.rs +++ b/arcshift/src/lib.rs @@ -3245,7 +3245,7 @@ impl ArcShift { /// This method has the advantage that it doesn't require `&mut self` access, /// but is otherwise inferior to [`ArcShift::get`]. #[inline(always)] - pub fn shared_get(&self) -> SharedGetGuard { + pub fn shared_get(&self) -> SharedGetGuard<'_, T> { if is_sized::() { let ptr = from_dummy::(self.item.as_ptr()); // SAFETY: