Skip to content

Commit 08a8a81

Browse files
committed
Rebase and merge attempt number 2.
1 parent 1f26d8c commit 08a8a81

File tree

2 files changed

+7
-35
lines changed

2 files changed

+7
-35
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3196,7 +3196,7 @@ declare_clippy_lint! {
31963196
}
31973197

31983198
declare_clippy_lint! {
3199-
<<<<<<< HEAD
3199+
/// ### What it does
32003200
/// Checks for initial `'/'` in an argument to `.join()` on a `Path`.
32013201
///
32023202
/// ### Why is this bad?
@@ -3208,11 +3208,11 @@ declare_clippy_lint! {
32083208
/// ### Example
32093209
/// ```rust
32103210
/// let path = std::path::Path::new("/bin");
3211-
/// let res = path.join("/sh");
3211+
/// let res = path.join("/sh");
32123212
/// assert_eq!(res, PathBuf::from("/sh"));
32133213
/// ```
32143214
///
3215-
/// Use instead:
3215+
/// Use instead;
32163216
/// ```rust
32173217
/// let path = std::path::Path::new("/bin");
32183218
///
@@ -3227,8 +3227,10 @@ declare_clippy_lint! {
32273227
#[clippy::version = "1.70.0"]
32283228
pub PATH_JOIN_CORRECTION,
32293229
pedantic,
3230-
"arg to .join called on a Path contains '/' at the start"
3231-
=======
3230+
"arg to .join called on a Path contains '/' at the start"
3231+
}
3232+
3233+
declare_clippy_lint! {
32323234
/// ### What it does
32333235
/// Checks for `.rev().next()` on a `DoubleEndedIterator`
32343236
///
@@ -3249,7 +3251,6 @@ declare_clippy_lint! {
32493251
pub MANUAL_NEXT_BACK,
32503252
style,
32513253
"manual reverse iteration of `DoubleEndedIterator`"
3252-
>>>>>>> upstream/master
32533254
}
32543255

32553256
pub struct Methods {
@@ -3380,11 +3381,8 @@ impl_lint_pass!(Methods => [
33803381
NEEDLESS_COLLECT,
33813382
SUSPICIOUS_COMMAND_ARG_SPACE,
33823383
CLEAR_WITH_DRAIN,
3383-
<<<<<<< HEAD
33843384
PATH_JOIN_CORRECTION,
3385-
=======
33863385
MANUAL_NEXT_BACK,
3387-
>>>>>>> upstream/master
33883386
]);
33893387

33903388
/// Extracts a method call name, args, and `Span` of the method name.

tests/ui/path_join_correction.fixed

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)