Skip to content

Commit 42723dc

Browse files
committed
Mark unnecessary_first_then_check and byte_char_slices as Applicable
1 parent b85f632 commit 42723dc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clippy_lints/src/byte_char_slices.rs

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)