diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2022-09-23 22:20:42 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2022-09-23 23:08:12 -0400 |
| commit | cc6b375cd3edcee65adc6a7aa3e45a7a50fe8112 (patch) | |
| tree | 55273409bda3af5fc178ef4371cab53c0426a74b /clippy_dev/src/fmt.rs | |
| parent | c2d426650b6eef2b22a36776ecf7096f9d950b7c (diff) | |
| download | rust-cc6b375cd3edcee65adc6a7aa3e45a7a50fe8112.tar.gz rust-cc6b375cd3edcee65adc6a7aa3e45a7a50fe8112.zip | |
fallout2: rework clippy_dev & _lints fmt inlining
* Inline format args where possible * simplify a few complex macros into format str * use formatdoc!() instead format!(indoc!(...))
Diffstat (limited to 'clippy_dev/src/fmt.rs')
| -rw-r--r-- | clippy_dev/src/fmt.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clippy_dev/src/fmt.rs b/clippy_dev/src/fmt.rs index 357cf6fc43a..25623144181 100644 --- a/clippy_dev/src/fmt.rs +++ b/clippy_dev/src/fmt.rs @@ -82,16 +82,16 @@ pub fn run(check: bool, verbose: bool) { fn output_err(err: CliError) { match err { CliError::CommandFailed(command, stderr) => { - eprintln!("error: A command failed! `{}`\nstderr: {}", command, stderr); + eprintln!("error: A command failed! `{command}`\nstderr: {stderr}"); }, CliError::IoError(err) => { - eprintln!("error: {}", err); + eprintln!("error: {err}"); }, CliError::RustfmtNotInstalled => { eprintln!("error: rustfmt nightly is not installed."); }, CliError::WalkDirError(err) => { - eprintln!("error: {}", err); + eprintln!("error: {err}"); }, CliError::IntellijSetupActive => { eprintln!( |
