From 88f18e4d1b362a4a8d2b28657edf2905ffc52968 Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Wed, 18 Dec 2024 16:07:57 +1100 Subject: [PATCH] clippy --- crates/cli/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 6daf1f7c..9ec12eea 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -81,13 +81,12 @@ async fn build_json_http( // CORS relies on browsers respecting server's access list response headers. // See [`tower_http::cors`](https://docs.rs/tower-http/latest/tower_http/cors/index.html) // for more details. - let cors_layer = CorsLayer::new() + CorsLayer::new() .allow_origin(AllowOrigin::exact( cors_allow_origin.parse().expect("malformed allow origin"), )) .allow_headers([http::header::CONTENT_TYPE]) - .allow_methods([Method::GET, Method::POST]); - cors_layer + .allow_methods([Method::GET, Method::POST]) })); let health_api_layer = tower::util::option_layer(if enable_health_api { Some(ProxyGetRequestLayer::new("/health", "web3_clientVersion").unwrap())