Skip to content

Commit

Permalink
Tune up lints for 1.71 Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Jul 14, 2023
1 parent cdcc98e commit 0c9b309
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@
clippy::print_stdout,
clippy::rc_buffer,
clippy::rc_mutex,
clippy::redundant_clone,
clippy::ref_patterns,
clippy::rest_pat_in_fully_bound_structs,
clippy::same_name_method,
clippy::semicolon_inside_block,
Expand Down
2 changes: 1 addition & 1 deletion src/storage/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl Storage {

// This way we reuse existing `description` if it has been set
// before metric registration.
let mut entry = storage.entry(name.into()).or_default();
let entry = storage.entry(name.into()).or_default();
// We should register in `prometheus::Registry` before storing
// in our `Collection`. This way `metrics::Recorder`
// implementations using this `storage::Mutable` will be able to
Expand Down

0 comments on commit 0c9b309

Please sign in to comment.