*: Activate clippy::style lint group (#2620)

This commit is contained in:
Hubert
2022-05-03 13:11:48 +02:00
committed by GitHub
parent f46fecd4d7
commit 70d38520fd
35 changed files with 137 additions and 92 deletions

View File

@ -517,9 +517,7 @@ impl Metrics {
let metric = self
.peers_per_protocol
.get_or_create(&ProtocolLabel { protocol: kind });
if metric.get() == 0 {
return;
} else {
if metric.get() != 0 {
// decrement the counter
metric.set(metric.get() - 1);
}