Skip to content

Commit 8a7ccf4

Browse files
committed
Fix doc tests
1 parent 4ac51fa commit 8a7ccf4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clippy_lints/src/format_args.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,13 @@ declare_clippy_lint! {
6262
///
6363
/// ### Example
6464
/// ```no_run
65+
/// # use std::path::Path;
6566
/// let path = Path::new("...");
6667
/// println!("The path is {:?}", path);
6768
/// ```
6869
/// Use instead:
6970
/// ```no_run
71+
/// # use std::path::Path;
7072
/// let path = Path::new("…");
7173
/// println!("The path is {}", path.display());
7274
/// ```

0 commit comments

Comments
 (0)