Skip to content

Commit

Permalink
chore: updated clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
paulobressan committed Oct 9, 2024
1 parent 8f8beef commit a82c152
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/domain/usage/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub async fn sync_usage(

let usages = usages.unwrap();

if usages.iter().find(|u| u.tier == tier).is_none() {
if !usages.iter().any(|u| u.tier == tier) {
let unit = UsageUnitMetric {
resource_id: r.resource_id.clone(),
resource_name: r.resource_name.clone(),
Expand Down Expand Up @@ -103,7 +103,7 @@ pub async fn sync_usage(
}
}

let tasks = metrics.iter().map(|(_, u)| async {
let tasks = metrics.values().map(|u| async {
let evt = UsageCreated {
id: Uuid::new_v4().to_string(),
cluster_id: cluster_id.into(),
Expand Down

0 comments on commit a82c152

Please sign in to comment.