Skip to content

Commit f3dc2f3

Browse files
authored
Retain backing allocation of ActiveQuery::input_outputs in ActiveQuery::seed_iteration (#948)
1 parent 8b6d12b commit f3dc2f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/active_query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ impl ActiveQuery {
7373
untracked_read: bool,
7474
) {
7575
assert!(self.input_outputs.is_empty());
76-
self.input_outputs = edges.iter().cloned().collect();
76+
self.input_outputs.extend(edges.iter().cloned());
7777
self.durability = self.durability.min(durability);
7878
self.changed_at = self.changed_at.max(changed_at);
7979
self.untracked_read |= untracked_read;

0 commit comments

Comments
 (0)