mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-28 09:11: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
|
||||
.iter()
|
||||
.map(|p| {
|
||||
if ALLOWED_PROTOCOLS.contains(&p) {
|
||||
if ALLOWED_PROTOCOLS.contains(p) {
|
||||
p.to_string()
|
||||
} else {
|
||||
"unrecognized".to_string()
|
||||
|
Reference in New Issue
Block a user