Skip to content

Commit 7834760

Browse files
committed
fix: add default for metrics to fix linting error
1 parent 2188e11 commit 7834760

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/metrics.rs

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ pub struct Metrics {
1212
data: Arc<Mutex<HashMap<String, i64>>>,
1313
}
1414

15+
impl Default for Metrics {
16+
fn default() -> Self {
17+
Self::new()
18+
}
19+
}
20+
1521
impl Metrics {
1622
pub fn new() -> Self {
1723
Metrics {

0 commit comments

Comments
 (0)