From 791ace4c50b856da2f443645029b0b9ea2950d4c Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Tue, 15 Sep 2020 15:29:17 +1000 Subject: [PATCH] Fix clippy lints --- beacon_node/http_api/src/lib.rs | 34 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index a126b774a51..ec7b10bca63 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -117,7 +117,7 @@ pub fn prometheus_metrics() -> warp::filters::log::Log Option<&'static str> { - if info.path() == &format!("/{}/{}/{}", API_PREFIX, API_VERSION, s) { + if info.path() == format!("/{}/{}/{}", API_PREFIX, API_VERSION, s) { Some(s) } else { None @@ -136,19 +136,19 @@ pub fn prometheus_metrics() -> warp::filters::log::Log warp::filters::log::Log