Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2023-12-01 22:04:07 +00:00 committed by GitHub
parent ba2a379cb7
commit e245bc972e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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),