From: Chris Morgan Date: Tue, 22 Feb 2022 02:01:28 +0000 (+1100) Subject: Remove unneeded clippy allow X-Git-Tag: 1.0.0-beta.2~2 X-Git-Url: https://git.chrismorgan.info/anymap/commitdiff_plain/e04b8b4d6ecf155f4ac9fedde3effe55e5f74ae0 Remove unneeded clippy allow I wrote this code in the short window between the lint being added and being downgraded to pedantic. --- 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) => {