language: Remove some unnecessary cloning (#30229)
Another tiny patch to reduce allocations `.iter().cloned().collect()` calls `Clone` per element, whereas `into_iter().collect()` preallocates memory Release Notes: - N/A
This commit is contained in:
parent
d06d0e6a94
commit
a61958e886
1 changed files with 1 additions and 1 deletions
|
@ -2698,7 +2698,7 @@ impl Buffer {
|
|||
}
|
||||
self.send_operation(
|
||||
Operation::UpdateCompletionTriggers {
|
||||
triggers: triggers.iter().cloned().collect(),
|
||||
triggers: triggers.into_iter().collect(),
|
||||
lamport_timestamp: self.completion_triggers_timestamp,
|
||||
server_id,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue