Fix clippy::println_empty_string
, clippy::while_let_on_iterator
, clippy::while_let_on_iterator
lint style violations (#36613)
Related: #36577 Release Notes: - N/A
This commit is contained in:
parent
41e28a7185
commit
ec8106d1db
20 changed files with 35 additions and 32 deletions
|
@ -186,7 +186,7 @@ fn tokenize(text: &str, language_scope: Option<LanguageScope>) -> impl Iterator<
|
|||
let mut prev = None;
|
||||
let mut start_ix = 0;
|
||||
iter::from_fn(move || {
|
||||
while let Some((ix, c)) = chars.next() {
|
||||
for (ix, c) in chars.by_ref() {
|
||||
let mut token = None;
|
||||
let kind = classifier.kind(c);
|
||||
if let Some((prev_char, prev_kind)) = prev
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue