Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang authored Dec 31, 2024
1 parent 5e49590 commit a23ecca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/scripts/metric_unify/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl MetricDb {

// Custom sorting function that ensures 'group' comes first.
// Other keys are sorted alphabetically.
fn custom_sort_label_keys(label_keys: &mut Vec<String>) {
fn custom_sort_label_keys(label_keys: &mut [String]) {
// Prioritize 'group' by giving it the lowest possible sort value
label_keys.sort_by_key(|key| {
if key == "group" {
Expand Down
2 changes: 1 addition & 1 deletion ci/scripts/metric_unify/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl MetricDb {
let decimal = (value.fract() * 100.0).abs().round() as i64;

if decimal == 0 {
format!("{}", whole.to_formatted_string(&Locale::en))
whole.to_formatted_string(&Locale::en)
} else {
format!("{}.{:02}", whole.to_formatted_string(&Locale::en), decimal)
}
Expand Down

0 comments on commit a23ecca

Please sign in to comment.