Skip to content

Commit d3444be

Browse files
saxrainliu
authored andcommitted
StatsCollector derives Default
1 parent 94ee667 commit d3444be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/stats/stats_collector.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
use super::StatsReportType;
22

3+
#[derive(Default)]
34
pub struct StatsCollector {
45
reports: Vec<StatsReportType>,
56
}
67

78
impl StatsCollector {
89
pub(crate) fn new() -> Self {
910
StatsCollector {
10-
reports: vec![]
11+
..Default::default()
1112
}
1213
}
1314

0 commit comments

Comments
 (0)