diff --git a/misc/metrics/src/identify.rs b/misc/metrics/src/identify.rs index b3ae5a75910..730528167a8 100644 --- a/misc/metrics/src/identify.rs +++ b/misc/metrics/src/identify.rs @@ -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 },