mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-12-23 00:21:38 +03:00
Format Rust code using rustfmt
This commit is contained in:
parent
ba2a379cb7
commit
e245bc972e
23
src/main.rs
23
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),
|
||||
|
Loading…
Reference in New Issue
Block a user