Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
bragov4ik committed Jun 21, 2024
1 parent d144567 commit 0cf0eb0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions libs/metrics-tools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion stats/stats-server/src/config/read/merge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 0cf0eb0

Please sign in to comment.