mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-23 06:41:34 +00:00
*: Activate clippy::style
lint group (#2620)
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user