Auto merge of #13537 - Manishearth:applicable, r=xFrednet
Mark unnecessary_first_then_check and byte_char_slices as Applicable I don't really see situations where this isn't Applicable that aren't weird edge cases where the lint should be disabled. changelog: none
This commit is contained in:
commit
48e98ec68d
@ -41,7 +41,7 @@ impl EarlyLintPass for ByteCharSlice {
|
|||||||
"can be more succinctly written as a byte str",
|
"can be more succinctly written as a byte str",
|
||||||
"try",
|
"try",
|
||||||
format!("b\"{slice}\""),
|
format!("b\"{slice}\""),
|
||||||
Applicability::MaybeIncorrect,
|
Applicability::MachineApplicable,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ pub(super) fn check(
|
|||||||
),
|
),
|
||||||
"replace this with",
|
"replace this with",
|
||||||
suggestion,
|
suggestion,
|
||||||
Applicability::MaybeIncorrect,
|
Applicability::MachineApplicable,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user