From e04b8b4d6ecf155f4ac9fedde3effe55e5f74ae0 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Tue, 22 Feb 2022 13:01:28 +1100 Subject: [PATCH] Remove unneeded clippy allow I wrote this code in the short window between the lint being added and being downgraded to pedantic. --- src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 0fc2941..560a73d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -405,8 +405,6 @@ impl<'a, A: ?Sized + Downcast, V: IntoBox> Entry<'a, A, V> { /// Provides in-place mutable access to an occupied entry before any potential inserts into the /// map. #[inline] - // std::collections::hash_map::Entry::and_modify doesn’t have #[must_use], I’ll follow suit. - #[allow(clippy::return_self_not_must_use)] pub fn and_modify(self, f: F) -> Self { match self { Entry::Occupied(mut inner) => { -- 2.42.0