Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clippy
: edit
apply some pedantic lints
warning: consider adding a `;` to the last statement for consistent formatting --> src/cmd/edit.rs:73:9 | 73 | column_index = Some(headers.len() - 1) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `column_index = Some(headers.len() - 1);` | = 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)]` warning: boolean to int conversion using if --> src/cmd/edit.rs:89:34 | 89 | let mut current_row: usize = if no_headers { 1 } else { 0 }; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with from: `usize::from(no_headers)` | = note: `no_headers as usize` or `no_headers.into()` can also be valid options = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if = note: `-W clippy::bool-to-int-with-if` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::bool_to_int_with_if)]`
- Loading branch information