Skip to content

Commit

Permalink
misc/metrics: fix clippy::assign-op-pattern (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaf9 authored Jul 25, 2022
1 parent f85a990 commit c19a211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/metrics/src/identify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl EncodeMetric for Protocols {
|mut acc, (_, protocols)| {
for protocol in protocols {
let count = acc.entry(protocol.to_string()).or_default();
*count = *count + 1;
*count += 1;
}
acc
},
Expand Down

0 comments on commit c19a211

Please sign in to comment.