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
|
@ -42,8 +42,8 @@ impl<'a> GitTraversal<'a> {
|
|||
// other_repo/
|
||||
// .git/
|
||||
// our_query.txt
|
||||
let mut query = path.ancestors();
|
||||
while let Some(query) = query.next() {
|
||||
let query = path.ancestors();
|
||||
for query in query {
|
||||
let (_, snapshot) = self
|
||||
.repo_root_to_snapshot
|
||||
.range(Path::new("")..=query)
|
||||
|
|
|
@ -13149,10 +13149,10 @@ fn ensure_uniform_list_compatible_label(label: &mut CodeLabel) {
|
|||
let mut offset_map = vec![0; label.text.len() + 1];
|
||||
let mut last_char_was_space = false;
|
||||
let mut new_idx = 0;
|
||||
let mut chars = label.text.char_indices().fuse();
|
||||
let chars = label.text.char_indices().fuse();
|
||||
let mut newlines_removed = false;
|
||||
|
||||
while let Some((idx, c)) = chars.next() {
|
||||
for (idx, c) in chars {
|
||||
offset_map[idx] = new_idx;
|
||||
|
||||
match c {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue