We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22b3731 commit b416334Copy full SHA for b416334
1 file changed
crates/devtools-core/src/aggregator.rs
@@ -213,7 +213,7 @@ impl Aggregator {
213
214
fn log_update(&mut self, include: Include) -> logs::Update {
215
let log_events = match include {
216
- Include::All => self.logs.to_vec(),
+ Include::All => self.logs.clone(),
217
Include::IncrementalOnly => self.logs.drain(..).collect(),
218
};
219
@@ -232,7 +232,7 @@ impl Aggregator {
232
233
fn span_update(&mut self, include: Include) -> spans::Update {
234
let span_events = match include {
235
- Include::All => self.spans.to_vec(),
+ Include::All => self.spans.clone(),
236
Include::IncrementalOnly => self.spans.drain(..).collect(),
237
238
0 commit comments