Mark unnecessary_first_then_check and byte_char_slices as Applicable
This commit is contained in:
parent
b85f632607
commit
42723dc9df
@ -41,7 +41,7 @@ impl EarlyLintPass for ByteCharSlice {
|
||||
"can be more succinctly written as a byte str",
|
||||
"try",
|
||||
format!("b\"{slice}\""),
|
||||
Applicability::MaybeIncorrect,
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ pub(super) fn check(
|
||||
),
|
||||
"replace this with",
|
||||
suggestion,
|
||||
Applicability::MaybeIncorrect,
|
||||
Applicability::MachineApplicable,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user