Skip to content

Commit

Permalink
fix: add default for metrics to fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrchen committed Mar 30, 2024
1 parent 2188e11 commit 7834760
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ pub struct Metrics {
data: Arc<Mutex<HashMap<String, i64>>>,
}

impl Default for Metrics {
fn default() -> Self {
Self::new()
}
}

impl Metrics {
pub fn new() -> Self {
Metrics {
Expand Down

0 comments on commit 7834760

Please sign in to comment.