Skip to content

Commit b416334

Browse files
committed
clippy
1 parent 22b3731 commit b416334

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/devtools-core/src/aggregator.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ impl Aggregator {
213213

214214
fn log_update(&mut self, include: Include) -> logs::Update {
215215
let log_events = match include {
216-
Include::All => self.logs.to_vec(),
216+
Include::All => self.logs.clone(),
217217
Include::IncrementalOnly => self.logs.drain(..).collect(),
218218
};
219219

@@ -232,7 +232,7 @@ impl Aggregator {
232232

233233
fn span_update(&mut self, include: Include) -> spans::Update {
234234
let span_events = match include {
235-
Include::All => self.spans.to_vec(),
235+
Include::All => self.spans.clone(),
236236
Include::IncrementalOnly => self.spans.drain(..).collect(),
237237
};
238238

0 commit comments

Comments
 (0)