Skip to content

Commit 8d1ebec

Browse files
committed
Mark unnecessary_first_then_check and byte_char_slices as Applicable
1 parent b85f632 commit 8d1ebec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clippy_lints/src/byte_char_slices.rs

Lines changed: 2 additions & 2 deletions
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
}
@@ -67,7 +67,7 @@ fn is_byte_char_slices(expr: &Expr) -> Option<String> {
6767
})
6868
.map(|maybe_quote| match maybe_quote {
6969
Some("\"") => Some("\\\""),
70-
Some("\\'") => Some("'"),
70+
Some("\\'") => Some("'"),\
7171
other => other,
7272
})
7373
.collect::<Option<String>>()

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)