Fix iterator related clippy style lint violations (#36437)
Release Notes: - N/A
This commit is contained in:
parent
176c445817
commit
1fbb318714
13 changed files with 21 additions and 33 deletions
|
@ -20932,7 +20932,7 @@ impl Editor {
|
|||
|
||||
let existing_pending = self
|
||||
.text_highlights::<PendingInput>(cx)
|
||||
.map(|(_, ranges)| ranges.iter().cloned().collect::<Vec<_>>());
|
||||
.map(|(_, ranges)| ranges.to_vec());
|
||||
if existing_pending.is_none() && pending.is_empty() {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue