Skip to content

Commit df1fb71

Browse files
committed
Resolve semicolon_if_nothing_returned clippy lints
error: consider adding a `;` to the last statement for consistent formatting --> src/map.rs:55:9 | 55 | self.map.clear() | ^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.clear();` | note: the lint level is defined here --> src/lib.rs:304:22 | 304 | #![deny(clippy::all, clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[deny(clippy::semicolon_if_nothing_returned)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned error: consider adding a `;` to the last statement for consistent formatting --> src/read.rs:719:9 | 719 | R::discard(self) | ^^^^^^^^^^^^^^^^ help: add a `;` here: `R::discard(self);` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned error: consider adding a `;` to the last statement for consistent formatting --> src/read.rs:769:9 | 769 | R::set_failed(self, failed) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `R::set_failed(self, failed);` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned
1 parent e4057c7 commit df1fb71

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/map.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl Map<String, Value> {
5252
/// Clears the map, removing all values.
5353
#[inline]
5454
pub fn clear(&mut self) {
55-
self.map.clear()
55+
self.map.clear();
5656
}
5757

5858
/// Returns a reference to the value corresponding to the key.

src/read.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ where
716716
}
717717

718718
fn discard(&mut self) {
719-
R::discard(self)
719+
R::discard(self);
720720
}
721721

722722
fn position(&self) -> Position {
@@ -766,7 +766,7 @@ where
766766
const should_early_return_if_failed: bool = R::should_early_return_if_failed;
767767

768768
fn set_failed(&mut self, failed: &mut bool) {
769-
R::set_failed(self, failed)
769+
R::set_failed(self, failed);
770770
}
771771
}
772772

0 commit comments

Comments
 (0)