فهرست منبع

update formating to comply with rustfmt

sombra 3 سال پیش
والد
کامیت
a9b4f7f524
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      bin/darkfid/src/main.rs

+ 3 - 3
bin/darkfid/src/main.rs

@@ -16,8 +16,7 @@
  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
-use std::str::FromStr;
-use std::path::Path;
+use std::{path::Path, str::FromStr};
 
 use async_std::sync::{Arc, Mutex};
 use async_trait::async_trait;
@@ -301,7 +300,8 @@ async fn realmain(args: Args, ex: Arc<smol::Executor<'_>>) -> Result<()> {
     let wallet = init_wallet(&args.wallet_path, &args.wallet_pass).await?;
 
     // Initialize or open sled database
-    let db_path = Path::new(expand_path(&args.database)?.to_str().unwrap()).join(args.chain.clone());
+    let db_path = 
+        Path::new(expand_path(&args.database)?.to_str().unwrap()).join(args.chain.clone());
     let sled_db = sled::open(&db_path)?;
 
     // Initialize validator state