Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore uninlined_format_args pedantic clippy lint
error: variables can be used directly in the `format!` string --> src/main.rs:158:21 | 158 | let _ = writeln!(io::stderr(), "{}", err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic` help: change this to | 158 - let _ = writeln!(io::stderr(), "{}", err); 158 + let _ = writeln!(io::stderr(), "{err}"); | error: variables can be used directly in the `format!` string --> src/main.rs:251:27 | 251 | let msg = format!("{}: {}", path.display(), err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 251 - let msg = format!("{}: {}", path.display(), err); 251 + let msg = format!("{}: {err}", path.display()); | error: variables can be used directly in the `format!` string --> src/main.rs:413:19 | 413 | args.push(format!("--color={}", setting).into()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 413 - args.push(format!("--color={}", setting).into()); 413 + args.push(format!("--color={setting}").into()); | error: variables can be used directly in the `format!` string --> src/main.rs:443:21 | 443 | let _ = write!(io::stderr(), "{}", line); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 443 - let _ = write!(io::stderr(), "{}", line); 443 + let _ = write!(io::stderr(), "{line}"); |
- Loading branch information