Skip to content

Commit 5d2dfe8

Browse files
committed
fix hidden life time warning
1 parent 0428a9d commit 5d2dfe8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pool.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub(crate) struct ShardedSet {
2020
}
2121

2222
impl ShardedSet {
23-
fn get_hash_and_shard(&self, value: &[u8]) -> (u64, MutexGuard<LockedShard>) {
23+
fn get_hash_and_shard(&self, value: &[u8]) -> (u64, MutexGuard<'_, LockedShard>) {
2424
// hash before locking
2525
let hash = self.hash_builder.hash_one(value);
2626
// copied from https://github.com/xacrimon/dashmap/blob/366ce7e7872866a06de66eb95002fa6cf2c117a7/src/lib.rs#L419

0 commit comments

Comments
 (0)