File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 > > ( )
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments