Skip to content

Commit 1d89038

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 f5d81a3 commit 1d89038

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
@@ -141,7 +141,7 @@ declare_clippy_lint! {
141141
/// format!("{var:.prec$}");
142142
/// ```
143143
///
144-
/// If allow-mixed-uninlined-format-args is set to false in clippy.toml,
144+
/// If `allow-mixed-uninlined-format-args` is set to `false` in clippy.toml,
145145
/// the following code will also trigger the lint:
146146
/// ```no_run
147147
/// # let var = 42;
@@ -159,7 +159,7 @@ declare_clippy_lint! {
159159
/// nothing will be suggested, e.g. `println!("{0}={1}", var, 1+2)`.
160160
#[clippy::version = "1.66.0"]
161161
pub UNINLINED_FORMAT_ARGS,
162-
pedantic,
162+
style,
163163
"using non-inlined variables in `format!` calls"
164164
}
165165

0 commit comments

Comments
 (0)