Remove unneeded clippy allow

I wrote this code in the short window between the lint being added and
being downgraded to pedantic.
This commit is contained in:
Chris Morgan 2022-02-22 13:01:28 +11:00
parent e45f984c83
commit e04b8b4d6e

View file

@ -405,8 +405,6 @@ impl<'a, A: ?Sized + Downcast, V: IntoBox<A>> 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 doesnt have #[must_use], Ill follow suit.
#[allow(clippy::return_self_not_must_use)]
pub fn and_modify<F: FnOnce(&mut V)>(self, f: F) -> Self {
match self {
Entry::Occupied(mut inner) => {