]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/clippy_lints/src/methods/chars_next_cmp.rs
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / src / tools / clippy / clippy_lints / src / methods / chars_next_cmp.rs
1 use rustc_lint::LateContext;
2
3 use super::CHARS_NEXT_CMP;
4
5 /// Checks for the `CHARS_NEXT_CMP` lint.
6 pub(super) fn check(cx: &LateContext<'_>, info: &crate::methods::BinaryExprInfo<'_>) -> bool {
7     crate::methods::chars_cmp::check(cx, info, &["chars", "next"], CHARS_NEXT_CMP, "starts_with")
8 }