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)]`
This commit is contained in:
David Tolnay 2024-06-24 21:36:01 -07:00
parent eb0330a178
commit 0af2bdae94
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -374,7 +374,7 @@ impl Eq for Map<String, Value> {}
impl Hash for Map<String, Value> {
#[inline]
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.map.hash(state)
self.map.hash(state);
}
}
#[cfg(feature = "preserve_order")]