mirror of
https://github.com/serde-rs/json.git
synced 2025-11-16 21:35:47 +00:00
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:
parent
eb0330a178
commit
0af2bdae94
@ -374,7 +374,7 @@ impl Eq for Map<String, Value> {}
|
|||||||
impl Hash for Map<String, Value> {
|
impl Hash for Map<String, Value> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
|
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
|
||||||
self.map.hash(state)
|
self.map.hash(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(feature = "preserve_order")]
|
#[cfg(feature = "preserve_order")]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user