mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 17:21:34 +00:00
fix(metrics): don't grab unnecessary reference
This clippy warning started to pop up on my machine. Not sure how it slipped through CI! Pull-Request: #3939.
This commit is contained in:
@ -203,7 +203,7 @@ impl Collector for Peers {
|
|||||||
.protocols
|
.protocols
|
||||||
.iter()
|
.iter()
|
||||||
.map(|p| {
|
.map(|p| {
|
||||||
if ALLOWED_PROTOCOLS.contains(&p) {
|
if ALLOWED_PROTOCOLS.contains(p) {
|
||||||
p.to_string()
|
p.to_string()
|
||||||
} else {
|
} else {
|
||||||
"unrecognized".to_string()
|
"unrecognized".to_string()
|
||||||
|
Reference in New Issue
Block a user