diff --git a/beacon_node/http_api/src/lib.rs b/beacon_node/http_api/src/lib.rs index 547c54b8005..1cc37feae9b 100644 --- a/beacon_node/http_api/src/lib.rs +++ b/beacon_node/http_api/src/lib.rs @@ -1369,7 +1369,7 @@ pub fn serve( .and(warp::path("peers")) .and(warp::path("connected")) .and(warp::path::end()) - .and(network_globals.clone()) + .and(network_globals) .and_then(|network_globals: Arc>| { blocking_json_task(move || { Ok(network_globals @@ -1422,7 +1422,7 @@ pub fn serve( .and(warp::path::param::()) .and(warp::path("global")) .and(warp::path::end()) - .and(chain_filter.clone()) + .and(chain_filter) .and_then(|epoch: Epoch, chain: Arc>| { blocking_json_task(move || { consensus::global_validator_inclusion_data(epoch, &chain)