Skip to content

Commit

Permalink
src: fix new linting warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Luca BRUNO <lucab@lucabruno.net>
  • Loading branch information
lucab committed May 3, 2024
1 parent 9439a3a commit 9adbe39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ impl RegistryCore {

// Write out MetricFamilies sorted by their name.
mf_by_name
.into_iter()
.map(|(_, mut m)| {
.into_values()
.map(|mut m| {
// Add registry namespace prefix, if any.
if let Some(ref namespace) = self.prefix {
let prefixed = format!("{}_{}", namespace, m.get_name());
Expand Down
1 change: 0 additions & 1 deletion static-metric/src/auto_flush_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,6 @@ impl<'a> MetricBuilderContext<'a> {
})#local_suffix_call,
}
} else {
let prev_labels_ident = prev_labels_ident;
quote! {
#name: #member_type::from(
#(
Expand Down
1 change: 0 additions & 1 deletion static-metric/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,6 @@ impl<'a> MetricBuilderContext<'a> {
})#local_suffix_call,
}
} else {
let prev_labels_ident = prev_labels_ident;
quote! {
#name: #member_type::from(
#(
Expand Down

0 comments on commit 9adbe39

Please sign in to comment.