We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0428a9d commit 5d2dfe8Copy full SHA for 5d2dfe8
src/pool.rs
@@ -20,7 +20,7 @@ pub(crate) struct ShardedSet {
20
}
21
22
impl ShardedSet {
23
- fn get_hash_and_shard(&self, value: &[u8]) -> (u64, MutexGuard<LockedShard>) {
+ fn get_hash_and_shard(&self, value: &[u8]) -> (u64, MutexGuard<'_, LockedShard>) {
24
// hash before locking
25
let hash = self.hash_builder.hash_one(value);
26
// copied from https://github.com/xacrimon/dashmap/blob/366ce7e7872866a06de66eb95002fa6cf2c117a7/src/lib.rs#L419
0 commit comments