This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve semicolon_if_nothing_returned clippy lints
error: consider adding a `;` to the last statement for consistent formatting --> src/mapping.rs:40:9 | 40 | self.map.reserve(additional) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.reserve(additional);` | = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D 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/mapping.rs:48:9 | 48 | self.map.shrink_to_fit() | ^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.shrink_to_fit();` | = 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/mapping.rs:104:9 | 104 | self.map.clear() | ^^^^^^^^^^^^^^^^ help: add a `;` here: `self.map.clear();` | = 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/number.rs:487:17 | 487 | 3.hash(state) | ^^^^^^^^^^^^^ help: add a `;` here: `3.hash(state);` | = 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 --> tests/test_value.rs:48:5 | 48 | / assert_eq!( 49 | | test, 50 | | Test { 51 | | first: "abc".to_string(), 52 | | second: 99 53 | | } 54 | | ) | |_____^ | = note: `-D clippy::semicolon-if-nothing-returned` implied by `-D clippy::pedantic` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#semicolon_if_nothing_returned help: add a `;` here | 48 | assert_eq!( 49 | test, 50 | Test { 51 | first: "abc".to_string(), 52 | second: 99 53 | } ...
- Loading branch information