Skip to content

Commit

Permalink
Resolve semicolon_if_nothing_returned pedantic clippy lint
Browse files Browse the repository at this point in the history
    error: consider adding a `;` to the last statement for consistent formatting
       --> src/map.rs:309:9
        |
    309 |         self.map.clone_from(&source.map)
        |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.clone_from(&source.map);`
        |
        = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
        = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic`
  • Loading branch information
dtolnay committed Nov 18, 2022
1 parent 9eb66da commit 586fefb
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 @@ -306,7 +306,7 @@ impl Clone for Map<String, Value> {

#[inline]
fn clone_from(&mut self, source: &Self) {
self.map.clone_from(&source.map)
self.map.clone_from(&source.map);
}
}

Expand Down

0 comments on commit 586fefb

Please sign in to comment.