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:
Thomas Eizinger
2023-05-15 13:20:52 +02:00
committed by GitHub
parent 2d83725c09
commit 856af16512

View File

@ -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()