From 856af16512fa08922a1cb337bf6428da478906ad Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 15 May 2023 13:20:52 +0200 Subject: [PATCH] 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. --- misc/metrics/src/identify.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/metrics/src/identify.rs b/misc/metrics/src/identify.rs index e3e14706..51ed7c38 100644 --- a/misc/metrics/src/identify.rs +++ b/misc/metrics/src/identify.rs @@ -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()