Skip to content

Commit 7d69ac6

Browse files
committed
Move clippy::join_absolute_paths to clippy::suspicious
1 parent 957cb2d commit 7d69ac6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3719,7 +3719,7 @@ declare_clippy_lint! {
37193719
/// ```
37203720
#[clippy::version = "1.75.0"]
37213721
pub JOIN_ABSOLUTE_PATHS,
3722-
correctness,
3722+
suspicious,
37233723
"calls to `Path::join` which will overwrite the original path"
37243724
}
37253725

tests/ui/join_absolute_paths.stderr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | path.join("/sh");
66
|
77
= note: joining a path starting with separator will replace the path instead
88
= note: `-D clippy::join-absolute-paths` implied by `-D warnings`
9+
= help: to override `-D warnings` add `#[allow(clippy::join_absolute_paths)]`
910
help: if this is unintentional, try removing the starting separator
1011
|
1112
LL | path.join("sh");

0 commit comments

Comments
 (0)