diff --git a/wallet/src/lib.rs b/wallet/src/lib.rs index 53d1083..23e13d0 100644 --- a/wallet/src/lib.rs +++ b/wallet/src/lib.rs @@ -19,7 +19,8 @@ use tokio::io::AsyncWriteExt; use crate::{ config::PersistentStorage, helperfunctions::{ - fetch_config, fetch_persistent_storage, get_home, produce_data_for_storage, produce_random_nonces + fetch_config, fetch_persistent_storage, get_home, produce_data_for_storage, + produce_random_nonces, }, poller::TxPoller, }; diff --git a/wallet/src/main.rs b/wallet/src/main.rs index e24a2de..71d7620 100644 --- a/wallet/src/main.rs +++ b/wallet/src/main.rs @@ -1,8 +1,10 @@ use anyhow::Result; use clap::{CommandFactory as _, Parser as _}; use tokio::runtime::Builder; -use wallet::cli::{Args, OverCommand, execute_continuous_run, execute_subcommand}; -use wallet::execute_setup; +use wallet::{ + cli::{Args, OverCommand, execute_continuous_run, execute_subcommand}, + execute_setup, +}; pub const NUM_THREADS: usize = 2; @@ -31,9 +33,7 @@ fn main() -> Result<()> { let _output = execute_subcommand(command).await?; Ok(()) } - OverCommand::Setup { password } => { - Ok(execute_setup(password).await?) - } + OverCommand::Setup { password } => Ok(execute_setup(password).await?), } } else if args.continuous_run { Ok(execute_continuous_run().await?)