File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3208,8 +3208,8 @@ declare_clippy_lint! {
3208
3208
/// ### Example
3209
3209
/// ```rust
3210
3210
/// 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"));
3213
3213
/// ```
3214
3214
///
3215
3215
/// Use instead;
@@ -3218,11 +3218,11 @@ declare_clippy_lint! {
3218
3218
///
3219
3219
/// // If this was unintentional, remove the leading separator
3220
3220
/// let extend = path.join("sh");
3221
- /// assert_eq!(extend, PathBuf::from("/bin/sh"));
3221
+ /// assert_eq!(extend, std::path:: PathBuf::from("/bin/sh"));
3222
3222
///
3223
3223
/// // 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"));
3226
3226
/// ```
3227
3227
#[ clippy:: version = "1.70.0" ]
3228
3228
pub PATH_JOIN_CORRECTION ,
You can’t perform that action at this time.
0 commit comments