Skip to content

Commit

Permalink
clean up clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
tobz committed Apr 15, 2023
1 parent f1937fe commit 1e9815b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metrics-exporter-prometheus/src/formatting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub fn key_to_parts(
) -> (String, Vec<String>) {
let name = sanitize_metric_name(key.name());
let mut values = default_labels.cloned().unwrap_or_default();
key.labels().into_iter().for_each(|label| {
key.labels().for_each(|label| {
values.insert(label.key().to_string(), label.value().to_string());
});
let labels = values
Expand Down
4 changes: 2 additions & 2 deletions metrics-tracing-context/src/tracing_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ pub struct WithContext {
}

impl WithContext {
pub fn with_labels<'a>(
pub fn with_labels(
&self,
dispatch: &'a Dispatch,
dispatch: &Dispatch,
id: &Id,
f: &mut dyn FnMut(&[Label]) -> Option<Key>,
) -> Option<Key> {
Expand Down

0 comments on commit 1e9815b

Please sign in to comment.