Skip to content

Commit

Permalink
Fix clippy::unnecessary_semicolon warning
Browse files Browse the repository at this point in the history
```
error: unnecessary semicolon
   --> src/context.rs:316:10
    |
316 |         };
    |          ^ help: remove
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
    = note: `-D clippy::unnecessary-semicolon` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::unnecessary_semicolon)]`

error: unnecessary semicolon
    --> src/main.rs:1080:10
     |
1080 |         };
     |          ^ help: remove
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon

error: unnecessary semicolon
    --> src/main.rs:1100:10
     |
1100 |         };
     |          ^ help: remove
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_semicolon
```
  • Loading branch information
taiki-e committed Jan 30, 2025
1 parent 39e3517 commit e6b2f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ fn ask_to_run(cmd: &ProcessBuilder, ask: bool, text: &str) -> Result<()> {
"" | "y" | "yes" => {}
"n" | "no" => bail!("aborting as per your request"),
a => bail!("invalid answer `{}`", a),
};
}
} else {
info!("running {} to {}", cmd, text);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1077,7 +1077,7 @@ impl Format {
println!("{out}");
}
return Ok(());
};
}

if cx.args.cov.codecov {
if term::verbose() {
Expand All @@ -1097,7 +1097,7 @@ impl Format {
println!("{out}");
}
return Ok(());
};
}

if let Some(output_path) = &cx.args.cov.output_path {
if term::verbose() {
Expand Down

0 comments on commit e6b2f16

Please sign in to comment.