Skip to content

Commit 07b007c

Browse files
committed
Ignore uninlined_format_args pedantic clippy lint
warning: variables can be used directly in the `format!` string --> src/path.rs:83:13 | 83 | write!(formatter, "{}", segment)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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 | 83 - write!(formatter, "{}", segment)?; 83 + write!(formatter, "{segment}")?; | warning: variables can be used directly in the `format!` string --> src/path.rs:147:39 | 147 | Segment::Seq { index } => write!(formatter, "[{}]", index), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 147 - Segment::Seq { index } => write!(formatter, "[{}]", index), 147 + Segment::Seq { index } => write!(formatter, "[{index}]"), | warning: variables can be used directly in the `format!` string --> src/path.rs:149:17 | 149 | write!(formatter, "{}", key) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args help: change this to | 149 - write!(formatter, "{}", key) 149 + write!(formatter, "{key}") |
1 parent 04edeea commit 07b007c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
clippy::module_name_repetitions,
6363
clippy::must_use_candidate,
6464
clippy::needless_lifetimes,
65-
clippy::new_without_default
65+
clippy::new_without_default,
66+
clippy::uninlined_format_args
6667
)]
6768
#![allow(unknown_lints, mismatched_lifetime_syntaxes)]
6869

0 commit comments

Comments
 (0)