mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11:34 +00:00
misc/metrics: fix clippy::assign-op-pattern (#2773)
This commit is contained in:
@ -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
|
||||
},
|
||||
|
Reference in New Issue
Block a user