We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ab6993 commit 889c9bfCopy full SHA for 889c9bf
src/lib.rs
@@ -9,6 +9,7 @@
9
//! std::thread::sleep(Duration::from_millis(60));
10
//! assert!(map.get(&"key").is_none());
11
//! ```
12
+#![warn(clippy::all, clippy::pedantic, clippy::cargo, clippy::nursery)]
13
#![allow(clippy::must_use_candidate)]
14
15
use std::{
@@ -307,7 +308,7 @@ impl<K: PartialEq + Eq + Hash> ExpiringSet<K> {
307
308
K: Borrow<Q>,
309
Q: ?Sized + Hash + Eq,
310
{
- self.0.remove_entry(key).map(|(k, _)| k)
311
+ self.0.remove_entry(key).map(|(k, ())| k)
312
}
313
314
/// Shrink the set to the minimum allowable size in accordance with the
0 commit comments