This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
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
warning: variables can be used directly in the `format!` string --> src/dumper.rs:261:5 | 261 | write!(WriteToPtr::new(anchor), "id{:03}\0", anchor_id); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/lib.rs:10:9 | 10 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 261 - write!(WriteToPtr::new(anchor), "id{:03}\0", anchor_id); 261 + write!(WriteToPtr::new(anchor), "id{anchor_id:03}\0"); | warning: variables can be used directly in the `format!` string --> src/bin/run-parser-test-suite.rs:217:21 | 217 | let _ = writeln!(io::stderr(), "{}", err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/bin/run-parser-test-suite.rs:1:9 | 1 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 217 - let _ = writeln!(io::stderr(), "{}", err); 217 + let _ = writeln!(io::stderr(), "{err}"); | warning: variables can be used directly in the `format!` string --> src/bin/run-emitter-test-suite.rs:302:21 | 302 | let _ = writeln!(io::stderr(), "{}", err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/bin/run-emitter-test-suite.rs:1:9 | 1 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 302 - let _ = writeln!(io::stderr(), "{}", err); 302 + let _ = writeln!(io::stderr(), "{err}"); | warning: variables can be used directly in the `format!` string --> src/bin/run-parser-test-suite.rs:217:21 | 217 | let _ = writeln!(io::stderr(), "{}", err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/bin/run-parser-test-suite.rs:1:9 | 1 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 217 - let _ = writeln!(io::stderr(), "{}", err); 217 + let _ = writeln!(io::stderr(), "{err}"); | warning: variables can be used directly in the `format!` string --> tests/test_parser_error.rs:25:9 | 25 | eprint!("{}", stdout); | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 25 - eprint!("{}", stdout); 25 + eprint!("{stdout}"); | warning: variables can be used directly in the `format!` string --> tests/test_parser_error.rs:26:9 | 26 | eprint!("{}", stderr); | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 26 - eprint!("{}", stderr); 26 + eprint!("{stderr}"); | warning: variables can be used directly in the `format!` string --> tests/test_parser.rs:25:5 | 25 | eprint!("{}", stderr); | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 25 - eprint!("{}", stderr); 25 + eprint!("{stderr}"); | warning: variables can be used directly in the `format!` string --> src/bin/run-emitter-test-suite.rs:302:21 | 302 | let _ = writeln!(io::stderr(), "{}", err); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args note: the lint level is defined here --> src/bin/run-emitter-test-suite.rs:1:9 | 1 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::uninlined_format_args)]` implied by `#[warn(clippy::pedantic)]` help: change this to | 302 - let _ = writeln!(io::stderr(), "{}", err); 302 + let _ = writeln!(io::stderr(), "{err}"); | warning: variables can be used directly in the `format!` string --> tests/test_emitter.rs:25:5 | 25 | eprint!("{}", stderr); | ^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args = note: `-W clippy::uninlined-format-args` implied by `-W clippy::pedantic` = help: to override `-W clippy::pedantic` add `#[allow(clippy::uninlined_format_args)]` help: change this to | 25 - eprint!("{}", stderr); 25 + eprint!("{stderr}"); |
- Loading branch information