From e245bc972ec52eecf7bdd8b346cf3f3ae5db7d3e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 1 Dec 2023 22:04:07 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/main.rs | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/src/main.rs b/src/main.rs index 1db60900..8f27d766 100644 --- a/src/main.rs +++ b/src/main.rs @@ -246,19 +246,18 @@ async fn main() { let (our, decoded_keyfile) = match args.fake_node_name { None => { match args.password { - None => { - match args.rpc { - None => panic!(""), - Some(rpc_url) => { - serve_register_fe( - &home_directory_path, - our_ip.to_string(), - http_server_port.clone(), - rpc_url.clone(), - ).await - } + None => match args.rpc { + None => panic!(""), + Some(rpc_url) => { + serve_register_fe( + &home_directory_path, + our_ip.to_string(), + http_server_port.clone(), + rpc_url.clone(), + ) + .await } - } + }, Some(password) => { match fs::read(format!("{}/.keys", home_directory_path)).await { Err(e) => panic!("could not read keyfile: {}", e),