Skip to content

Commit cd21df2

Browse files
nyurikAlexendoo
andauthored
Update clippy_lints/src/format_args.rs
Co-authored-by: Alex Macleod <alex@macleod.io>
1 parent fa620d0 commit cd21df2

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

clippy_lints/src/format_args.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,10 @@ declare_clippy_lint! {
102102
///
103103
/// ### Known Problems
104104
///
105-
/// * There may be a false positive if the format string is wrapped in a macro call:
106-
/// ```rust
107-
/// # let var = 42;
108-
/// macro_rules! no_param_str { () => { "{}" }; }
109-
/// macro_rules! pass_through { ($expr:expr) => { $expr }; }
110-
/// println!(no_param_str!(), var);
111-
/// println!(pass_through!("{}"), var);
105+
/// There may be a false positive if the format string is expanded from certain proc macros:
106+
///
107+
/// ```ignore
108+
/// println!(indoc!("{}"), var);
112109
/// ```
113110
///
114111
/// * Format string uses an indexed argument that cannot be inlined.

0 commit comments

Comments
 (0)