Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion arcshift/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ impl<T: 'static + ?Sized> ArcShiftCell<T> {
/// [`ArcShiftCellHandle`]. Leaking the handle will leak resources, but
/// not cause undefined behaviour.
#[inline]
pub fn borrow(&self) -> ArcShiftCellHandle<T> {
pub fn borrow(&self) -> ArcShiftCellHandle<'_, T> {
self.recursion.set(self.recursion.get() + 1);
ArcShiftCellHandle {
cell: self,
Expand Down
2 changes: 1 addition & 1 deletion arcshift/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3245,7 +3245,7 @@ impl<T: ?Sized> ArcShift<T> {
/// 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<T> {
pub fn shared_get(&self) -> SharedGetGuard<'_, T> {
if is_sized::<T>() {
let ptr = from_dummy::<T, SizedMetadata>(self.item.as_ptr());
// SAFETY:
Expand Down