Skip to content

Commit 50eb3d0

Browse files
nyurikAlexendoo
andauthored
Update clippy_lints/src/format_args.rs
Co-authored-by: Alex Macleod <[email protected]>
1 parent cd21df2 commit 50eb3d0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

clippy_lints/src/format_args.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,8 @@ declare_clippy_lint! {
108108
/// println!(indoc!("{}"), var);
109109
/// ```
110110
///
111-
/// * Format string uses an indexed argument that cannot be inlined.
112-
/// Supporting this case requires re-indexing of the format string.
113-
/// Until implemented, `print!("{0}={1}", var, 1+2)` should be changed to `print!("{var}={0}", 1+2)` by hand.
111+
/// If a format string contains a numbered argument that cannot be inlined
112+
/// nothing will be suggested, e.g. `println!("{0}={1}", var, 1+2)`.
114113
#[clippy::version = "1.65.0"]
115114
pub UNINLINED_FORMAT_ARGS,
116115
pedantic,

0 commit comments

Comments
 (0)