editor: Remove redundant clone in `highlight_text` (#49810)

ᴀᴍᴛᴏᴀᴇʀ created

Closes #ISSUE

Before you mark this PR as ready for review, make sure that you have:
- [ ] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [ ] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- N/A

Change summary

crates/editor/src/display_map.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/editor/src/display_map.rs 🔗

@@ -1216,7 +1216,7 @@ impl DisplayMap {
         let to_insert = match self.text_highlights.remove(&key) {
             Some(mut previous) if merge => match Arc::get_mut(&mut previous) {
                 Some((_, previous_ranges)) => {
-                    previous_ranges.extend(ranges.iter().cloned());
+                    previous_ranges.extend(ranges);
                     previous_ranges.sort_by(|a, b| a.start.cmp(&b.start, &multi_buffer_snapshot));
                     previous
                 }