From 83bdc5fd4213d94201a3d9ad0f2943da7eba1dd6 Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Mon, 11 Sep 2023 11:21:00 +0200 Subject: [PATCH] Omit return keyword in `remove_entry` Co-authored-by: David Tolnay --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.rs b/src/map.rs index 32a8cd01d..675058ba1 100644 --- a/src/map.rs +++ b/src/map.rs @@ -152,7 +152,7 @@ impl Map { String: Borrow, Q: ?Sized + Ord + Eq + Hash, { - return self.map.remove_entry(key); + self.map.remove_entry(key) } /// Moves all elements from other into self, leaving other empty.