From e6b2f16361346743c0bee02b891dbfe84ca8ac09 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 30 Jan 2025 17:24:04 +0900 Subject: [PATCH] Fix clippy::unnecessary_semicolon warning ``` 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 ``` --- src/context.rs | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context.rs b/src/context.rs index 85ad8bd..b591ac1 100644 --- a/src/context.rs +++ b/src/context.rs @@ -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); } diff --git a/src/main.rs b/src/main.rs index 667eede..9e29a68 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1077,7 +1077,7 @@ impl Format { println!("{out}"); } return Ok(()); - }; + } if cx.args.cov.codecov { if term::verbose() { @@ -1097,7 +1097,7 @@ impl Format { println!("{out}"); } return Ok(()); - }; + } if let Some(output_path) = &cx.args.cov.output_path { if term::verbose() {