diff --git a/libs/metrics-tools/src/lib.rs b/libs/metrics-tools/src/lib.rs index f4e7154d6..f7712f49f 100644 --- a/libs/metrics-tools/src/lib.rs +++ b/libs/metrics-tools/src/lib.rs @@ -8,6 +8,12 @@ pub struct AggregateTimer { recorded_time_secs: Duration, } +impl Default for AggregateTimer { + fn default() -> Self { + AggregateTimer::new() + } +} + impl AggregateTimer { pub fn new() -> Self { Self { diff --git a/stats/stats-server/src/config/read/merge.rs b/stats/stats-server/src/config/read/merge.rs index c2ebd8302..c5ac3bf52 100644 --- a/stats/stats-server/src/config/read/merge.rs +++ b/stats/stats-server/src/config/read/merge.rs @@ -156,7 +156,7 @@ pub fn override_update_groups( for (group_name, added_settings) in source.schedules { match target.schedules.entry(group_name) { Entry::Vacant(v) => { - v.insert(added_settings.into()); + v.insert(added_settings); } Entry::Occupied(mut o) => { let target_group = o.get_mut();