From 59eae513a8439400e7a3a249911658bb4b01237b Mon Sep 17 00:00:00 2001 From: romsters Date: Wed, 11 Dec 2024 02:53:35 +0200 Subject: [PATCH] chore: fix lint --- crates/cli/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/crates/cli/src/main.rs b/crates/cli/src/main.rs index 30125b3b..95402c84 100644 --- a/crates/cli/src/main.rs +++ b/crates/cli/src/main.rs @@ -79,7 +79,11 @@ async fn build_json_http< .build() .unwrap(); - let allow_origin = if disable_cors { "null" } else { &cors_allow_origin }; + let allow_origin = if disable_cors { + "null" + } else { + &cors_allow_origin + }; let mut builder = jsonrpc_http_server::ServerBuilder::new(io_handler) .threads(1) .event_loop_executor(runtime.handle().clone())