Skip to content

Commit a9f680c

Browse files
committed
Move uninlined_format_args to style
This lint was downgraded to `pedantic` in part because rust-analyzer was not fully supporting it at the time per rust-lang#10087. The support has been added over [a year ago](rust-lang/rust-analyzer#11260), so seems like this should be back to style. Another source of the initial frustration was fixed since then as well - this lint does not trigger by default in case only some arguments can be inlined.
1 parent 8cef0b6 commit a9f680c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clippy_lints/src/format_args.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ declare_clippy_lint! {
109109
/// format!("{var:.prec$}");
110110
/// ```
111111
///
112-
/// If allow-mixed-uninlined-format-args is set to false in clippy.toml,
112+
/// If `allow-mixed-uninlined-format-args` is set to `false` in clippy.toml,
113113
/// the following code will also trigger the lint:
114114
/// ```no_run
115115
/// # let var = 42;
@@ -127,7 +127,7 @@ declare_clippy_lint! {
127127
/// nothing will be suggested, e.g. `println!("{0}={1}", var, 1+2)`.
128128
#[clippy::version = "1.66.0"]
129129
pub UNINLINED_FORMAT_ARGS,
130-
pedantic,
130+
style,
131131
"using non-inlined variables in `format!` calls"
132132
}
133133

0 commit comments

Comments
 (0)