octal_escapes: note on print!() format strings
This commit is contained in:
parent
0bc25d04c6
commit
1210bb40d3
@ -27,6 +27,10 @@ declare_clippy_lint! {
|
||||
/// The actual meaning can be the intended one. `\x00` can be used in these
|
||||
/// cases to be unambigious.
|
||||
///
|
||||
/// The lint does not trigger for format strings in `print!()`, `write!()`
|
||||
/// and friends since the string is already preprocessed when Clippy lints
|
||||
/// can see it.
|
||||
///
|
||||
/// # Example
|
||||
/// ```rust
|
||||
/// // Bad
|
||||
|
Loading…
x
Reference in New Issue
Block a user