chore: Fix several style lints (#17488)

It's not comprehensive enough to start linting on `style` group, but
hey, it's a start.

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2024-09-06 11:58:39 +02:00 committed by GitHub
parent 93249fc82b
commit e6c1c51b37
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
361 changed files with 3530 additions and 3587 deletions

View file

@ -466,7 +466,7 @@ impl InlayHintCache {
to_insert.push(Inlay::hint(
cached_hint_id.id(),
anchor,
&cached_hint,
cached_hint,
));
}
}
@ -490,7 +490,7 @@ impl InlayHintCache {
to_insert.push(Inlay::hint(
cached_hint_id.id(),
anchor,
&maybe_missed_cached_hint,
maybe_missed_cached_hint,
));
}
}
@ -844,7 +844,7 @@ fn new_update_task(
.get_mut(&query.excerpt_id)
{
let buffer_snapshot = excerpt_buffer.read(cx).snapshot();
task_ranges.invalidate_range(&buffer_snapshot, &range);
task_ranges.invalidate_range(&buffer_snapshot, range);
}
})
.ok()
@ -3424,7 +3424,7 @@ pub mod tests {
pub fn cached_hint_labels(editor: &Editor) -> Vec<String> {
let mut labels = Vec::new();
for (_, excerpt_hints) in &editor.inlay_hint_cache().hints {
for excerpt_hints in editor.inlay_hint_cache().hints.values() {
let excerpt_hints = excerpt_hints.read();
for id in &excerpt_hints.ordered_hints {
labels.push(excerpt_hints.hints_by_id[id].text());