From 16489624ce5506f6e303e100e907eba5c51f3c19 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:34:17 +0000 Subject: [PATCH] Format Rust code using rustfmt --- src/main.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index f97b52ff..4614f388 100644 --- a/src/main.rs +++ b/src/main.rs @@ -173,16 +173,21 @@ async fn main() { Ok(decoded_keyfile) => { let our = Identity { name: decoded_keyfile.username.clone(), - networking_key: format!("0x{}", hex::encode(decoded_keyfile.networking_keypair.public_key().as_ref())), - ws_routing: None, // TODO + networking_key: format!( + "0x{}", + hex::encode( + decoded_keyfile.networking_keypair.public_key().as_ref() + ) + ), + ws_routing: None, // TODO allowed_routers: decoded_keyfile.routers.clone(), }; (our, decoded_keyfile) - }, + } } - }, + } } - }, + } None => { // check if we have keys saved on disk, encrypted // if so, prompt user for "password" to decrypt with @@ -226,7 +231,7 @@ async fn main() { let _ = kill_tx.send(true); (our, decoded_keyfile) - }, + } }; let (kernel_process_map, manifest, vfs_messages) = filesystem::load_fs(