Skip to content

Commit

Permalink
clippy:println_empty_string
Browse files Browse the repository at this point in the history
warning: empty string literal in `eprintln!`
    --> src/util.rs:1395:9
     |
1395 |         eprintln!(""); // newline after progress bar
     |         ^^^^^^^^^^--^
     |                   |
     |                   help: remove the empty string
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#println_empty_string
     = note: `#[warn(clippy::println_empty_string)]` on by default
  • Loading branch information
jqnatividad committed Sep 29, 2023
1 parent 28f620d commit d011fcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,7 @@ pub async fn download_file(
#[cfg(any(feature = "feature_capable", feature = "lite"))]
if show_progress {
pb.finish_with_message(format!("Downloaded {url}"));
eprintln!(""); // newline after progress bar
eprintln!(); // newline after progress bar
}

Ok(())
Expand Down

0 comments on commit d011fcf

Please sign in to comment.