zed: Reduce clones (#30550)
A collection of small patches that reduce clones. Mostly by using owned iterators where possible. Release Notes: - N/A
This commit is contained in:
parent
f0f0a52793
commit
8000151aa9
8 changed files with 22 additions and 23 deletions
|
@ -1238,12 +1238,12 @@ impl Render for LspLogToolbarItemView {
|
|||
}
|
||||
});
|
||||
let available_language_servers: Vec<_> = menu_rows
|
||||
.iter()
|
||||
.into_iter()
|
||||
.map(|row| {
|
||||
(
|
||||
row.server_id,
|
||||
row.server_name.clone(),
|
||||
row.worktree_root_name.clone(),
|
||||
row.server_name,
|
||||
row.worktree_root_name,
|
||||
row.selected_entry,
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue