Skip to content

Commit dd684d1

Browse files
committed
Add note re formatting changes
1 parent 1ea17d2 commit dd684d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clippy_lints/src/format_args.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ declare_clippy_lint! {
6060
/// change in the future. `OsStr`s and `Path`s can be `Display` formatted
6161
/// using their `display` methods.
6262
///
63+
/// Note that switching from `Debug` formatting to `Display` formatting
64+
/// will change how the `OsStr` or `Path` is shown. Escaped characters will
65+
/// no longer be escaped, and enclosing quotes (`"`...`"`) will be removed.
66+
///
6367
/// ### Example
6468
/// ```no_run
6569
/// # use std::path::Path;

0 commit comments

Comments
 (0)