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:
tidely
2025-05-12 10:09:23 +00:00
committed by GitHub
parent f0f0a52793
commit 8000151aa9
8 changed files with 22 additions and 23 deletions
@@ -857,7 +857,7 @@ async fn open_disabled_globs_setting_in_editor(
});
if !edits.is_empty() {
item.edit(edits.iter().cloned(), cx);
item.edit(edits, cx);
}
let text = item.buffer().read(cx).snapshot(cx).text();