2021-03-13 02:17:10 -06:00
|
|
|
use rustc_lint::LateContext;
|
|
|
|
|
|
|
|
use super::CHARS_NEXT_CMP;
|
|
|
|
|
|
|
|
/// Checks for the `CHARS_NEXT_CMP` lint.
|
2022-10-28 12:18:07 -05:00
|
|
|
pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryExprInfo<'_>) -> bool {
|
2021-03-13 02:17:10 -06:00
|
|
|
crate::methods::chars_cmp::check(cx, info, &["chars", "next"], CHARS_NEXT_CMP, "starts_with")
|
|
|
|
}
|