Skip to content

Commit 48e98ec

Browse files
committed
Auto merge of #13537 - Manishearth:applicable, r=xFrednet
Mark unnecessary_first_then_check and byte_char_slices as Applicable I don't really see situations where this isn't Applicable that aren't weird edge cases where the lint should be disabled. changelog: none
2 parents b85f632 + 42723dc commit 48e98ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/byte_char_slices.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl EarlyLintPass for ByteCharSlice {
4141
"can be more succinctly written as a byte str",
4242
"try",
4343
format!("b\"{slice}\""),
44-
Applicability::MaybeIncorrect,
44+
Applicability::MachineApplicable,
4545
);
4646
}
4747
}

clippy_lints/src/methods/unnecessary_first_then_check.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ pub(super) fn check(
5050
),
5151
"replace this with",
5252
suggestion,
53-
Applicability::MaybeIncorrect,
53+
Applicability::MachineApplicable,
5454
);
5555
}
5656
}

0 commit comments

Comments
 (0)