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