Fix iterator related clippy style lint violations (#36437)

Release Notes:

- N/A
This commit is contained in:
tidely 2025-08-19 11:06:35 +03:00 committed by Orual
parent 9501b48c15
commit 3a40d598e1
No known key found for this signature in database
13 changed files with 21 additions and 33 deletions

View file

@ -747,11 +747,7 @@ impl TextThreadEditor {
self.context.read(cx).invoked_slash_command(&command_id)
{
if let InvokedSlashCommandStatus::Finished = invoked_slash_command.status {
let run_commands_in_ranges = invoked_slash_command
.run_commands_in_ranges
.iter()
.cloned()
.collect::<Vec<_>>();
let run_commands_in_ranges = invoked_slash_command.run_commands_in_ranges.clone();
for range in run_commands_in_ranges {
let commands = self.context.update(cx, |context, cx| {
context.reparse(cx);