Skip to content

Commit

Permalink
Fix elided lifetimes
Browse files Browse the repository at this point in the history
  • Loading branch information
marc0246 committed Jun 16, 2024
1 parent 96f9d13 commit 5d94791
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl Drop for Guard<'_> {

impl<'a> From<&'a Guard<'a>> for Cow<'a, Guard<'a>> {
#[inline]
fn from(guard: &'a Guard) -> Self {
fn from(guard: &'a Guard<'a>) -> Self {
Cow::Borrowed(guard)
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(unused_unsafe, clippy::inline_always)]
#![warn(rust_2018_idioms)]
#![forbid(unsafe_op_in_unsafe_fn, clippy::undocumented_unsafe_blocks)]
#![cfg_attr(not(feature = "std"), no_std)]

Expand Down Expand Up @@ -353,7 +354,7 @@ impl<T, C: Collector<T>> SlotMap<T, C> {
}
}

pub fn try_collect(&self, guard: &epoch::Guard) {
pub fn try_collect(&self, guard: &epoch::Guard<'_>) {
let epoch = guard.epoch();
let queued_list = &self.free_list_queue[((epoch >> 1) & 1) as usize];
let mut queued_state = queued_list.load(Acquire);
Expand Down

0 comments on commit 5d94791

Please sign in to comment.