This commit is contained in:
@@ -79,6 +79,10 @@ impl LintPass for StringAdd {
|
||||
fn get_lints(&self) -> LintArray {
|
||||
lint_array!(STRING_ADD, STRING_ADD_ASSIGN)
|
||||
}
|
||||
|
||||
fn name(&self) -> &'static str {
|
||||
"StringAdd"
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringAdd {
|
||||
@@ -151,6 +155,10 @@ impl LintPass for StringLitAsBytes {
|
||||
fn get_lints(&self) -> LintArray {
|
||||
lint_array!(STRING_LIT_AS_BYTES)
|
||||
}
|
||||
|
||||
fn name(&self) -> &'static str {
|
||||
"StringLiteralAsBytes"
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, 'tcx> LateLintPass<'a, 'tcx> for StringLitAsBytes {
|
||||
|
||||
Reference in New Issue
Block a user