Skip to content

Commit 1ec7995

Browse files
committed
chore(*): fix linting errors
1 parent bc7f5f1 commit 1ec7995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hash_table.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,13 @@ where
330330

331331
/// Reads an entry from the [`HashTable`].
332332
#[inline]
333-
fn read_entry<'g, Q, D, R, F: FnOnce(&K, &V) -> R>(
333+
fn read_entry<Q, D, R, F: FnOnce(&K, &V) -> R>(
334334
&self,
335335
key: &Q,
336336
hash: u64,
337337
f: F,
338338
async_wait: &mut D,
339-
guard: &'g Guard,
339+
guard: &Guard,
340340
) -> Result<Option<R>, F>
341341
where
342342
Q: Equivalent<K> + Hash + ?Sized,
@@ -358,7 +358,7 @@ where
358358
let lock_result = if let Some(async_wait) = async_wait.derive() {
359359
match Reader::try_lock_or_wait(bucket, async_wait, guard) {
360360
Ok(result) => result,
361-
Err(_) => return Err(f),
361+
Err(()) => return Err(f),
362362
}
363363
} else {
364364
Reader::lock(bucket, guard)

0 commit comments

Comments
 (0)