Skip to content

Commit 8993714

Browse files
committed
fix
1 parent 5bf20af commit 8993714

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

opentelemetry-prometheus/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ pub(crate) fn get_unit_suffixes(unit: &str) -> Option<Cow<'static, str>> {
2626
get_prom_per_unit(second),
2727
) {
2828
(true, _, Some(second_part)) | (false, None, Some(second_part)) => {
29-
Some(Cow::Owned(format!("per_{}", second_part)))
29+
Some(Cow::Owned(format!("per_{second_part}")))
3030
}
3131
(false, Some(first_part), Some(second_part)) => {
32-
Some(Cow::Owned(format!("{}_per_{}", first_part, second_part)))
32+
Some(Cow::Owned(format!("{first_part}_per_{second_part}")))
3333
}
3434
_ => None,
3535
};

0 commit comments

Comments
 (0)