Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by GitHub
parent eecf142f06
commit 9e0e233319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 801 additions and 821 deletions

View file

@ -216,7 +216,7 @@ mod uniform_list {
};
let visible_entries = &compute_indents_fn(visible_range.clone(), window, cx);
let indent_guides = compute_indent_guides(
&visible_entries,
visible_entries,
visible_range.start,
includes_trailing_indent,
);
@ -241,7 +241,7 @@ mod sticky_items {
window: &mut Window,
cx: &mut App,
) -> AnyElement {
let indent_guides = compute_indent_guides(&indents, 0, false);
let indent_guides = compute_indent_guides(indents, 0, false);
self.render_from_layout(indent_guides, bounds, item_height, window, cx)
}
}

View file

@ -163,7 +163,7 @@ pub fn render_keystroke(
let size = size.into();
if use_text {
let element = Key::new(keystroke_text(&keystroke, platform_style, vim_mode), color)
let element = Key::new(keystroke_text(keystroke, platform_style, vim_mode), color)
.size(size)
.into_any_element();
vec![element]
@ -176,7 +176,7 @@ pub fn render_keystroke(
size,
true,
));
elements.push(render_key(&keystroke, color, platform_style, size));
elements.push(render_key(keystroke, color, platform_style, size));
elements
}
}