Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue