Skip to content

Commit

Permalink
Resolve semicolon_if_nothing_returned pedantic clippy lint from PR 1127
Browse files Browse the repository at this point in the history
    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)]`
  • Loading branch information
dtolnay committed Jun 25, 2024
1 parent eb0330a commit 0af2bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit 0af2bda

Please sign in to comment.