From 0af2bdae9483a9c54f8e032fcbf357dbe7803c49 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Mon, 24 Jun 2024 21:36:01 -0700 Subject: [PATCH] Resolve semicolon_if_nothing_returned pedantic clippy lint from PR 1127 warning: consider adding a `;` to the last statement for consistent formatting --> src/map.rs:377:9 | 377 | self.map.hash(state) | ^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.hash(state);` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned = note: `-W clippy::semicolon-if-nothing-returned` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::semicolon_if_nothing_returned)]` --- src/map.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map.rs b/src/map.rs index 4a90830c4..5360a69e0 100644 --- a/src/map.rs +++ b/src/map.rs @@ -374,7 +374,7 @@ impl Eq for Map {} impl Hash for Map { #[inline] fn hash(&self, state: &mut H) { - self.map.hash(state) + self.map.hash(state); } } #[cfg(feature = "preserve_order")]