Skip to content

Commit 889c9bf

Browse files
committedAug 13, 2024··
More explicit match
1 parent 3ab6993 commit 889c9bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/lib.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
//! std::thread::sleep(Duration::from_millis(60));
1010
//! assert!(map.get(&"key").is_none());
1111
//! ```
12+
#![warn(clippy::all, clippy::pedantic, clippy::cargo, clippy::nursery)]
1213
#![allow(clippy::must_use_candidate)]
1314

1415
use std::{
@@ -307,7 +308,7 @@ impl<K: PartialEq + Eq + Hash> ExpiringSet<K> {
307308
K: Borrow<Q>,
308309
Q: ?Sized + Hash + Eq,
309310
{
310-
self.0.remove_entry(key).map(|(k, _)| k)
311+
self.0.remove_entry(key).map(|(k, ())| k)
311312
}
312313

313314
/// Shrink the set to the minimum allowable size in accordance with the

0 commit comments

Comments
 (0)
Please sign in to comment.