Skip to content

Commit 606d801

Browse files
committed
Included sources to std::path in lint string.
1 parent 08a8a81 commit 606d801

File tree

1 file changed

+5
-5
lines changed
  • clippy_lints/src/methods

1 file changed

+5
-5
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,8 +3208,8 @@ declare_clippy_lint! {
32083208
/// ### Example
32093209
/// ```rust
32103210
/// let path = std::path::Path::new("/bin");
3211-
/// let res = path.join("/sh");
3212-
/// assert_eq!(res, PathBuf::from("/sh"));
3211+
/// let res = path.join("/sh");
3212+
/// assert_eq!(res, std::path::PathBuf::from("/sh"));
32133213
/// ```
32143214
///
32153215
/// Use instead;
@@ -3218,11 +3218,11 @@ declare_clippy_lint! {
32183218
///
32193219
/// // If this was unintentional, remove the leading separator
32203220
/// let extend = path.join("sh");
3221-
/// assert_eq!(extend, PathBuf::from("/bin/sh"));
3221+
/// assert_eq!(extend, std::path::PathBuf::from("/bin/sh"));
32223222
///
32233223
/// // If this was intentional, create a new path instead
3224-
/// let new = Path::new("/sh")
3225-
/// assert_eq!(new PathBuf::from("/sh"));
3224+
/// let new = std::path::Path::new("/sh")
3225+
/// assert_eq!(new std::path::PathBuf::from("/sh"));
32263226
/// ```
32273227
#[clippy::version = "1.70.0"]
32283228
pub PATH_JOIN_CORRECTION,

0 commit comments

Comments
 (0)