Skip to content

Commit

Permalink
clippy:semicolon_if_nothing_returned
Browse files Browse the repository at this point in the history
warning: consider adding a `;` to the last statement for consistent formatting
   --> src/cmd/excel.rs:628:29
    |
628 | ...                   record.push_field(if *b { "true" } else { "false" })
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add a `;` here: `record.push_field(if *b { "true" } else { "false" });`
    |
    = 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)]`
  • Loading branch information
jqnatividad committed Dec 6, 2023
1 parent 10fba8e commit e2893d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/excel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
},
DataType::Error(ref e) => record.push_field(&format!("{e:?}")),
DataType::Bool(ref b) => {
record.push_field(if *b { "true" } else { "false" })
record.push_field(if *b { "true" } else { "false" });
},
DataType::DateTimeIso(ref dt) => record.push_field(dt),
DataType::DurationIso(ref d) => record.push_field(d),
Expand Down

0 comments on commit e2893d1

Please sign in to comment.