From 9000e3b51050f64a624343913d16708253fa4062 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Wed, 30 May 2018 16:12:26 +0200
Subject: [PATCH] apply new fmt version

---
 blockchain/sync.rs |  9 +++++----
 dal/block.rs       | 19 +++++++++++--------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/blockchain/sync.rs b/blockchain/sync.rs
index 3fc1000d..1fca5547 100644
--- a/blockchain/sync.rs
+++ b/blockchain/sync.rs
@@ -130,10 +130,11 @@ pub fn sync_ts(
             .bind(&[sqlite::Value::Integer(0)])
             .expect("Fail to get ts current block !");
         let current_ts_blockstamp = if let Some(row) = cursor.next().expect("cursor error") {
-            let block_id = BlockId(row[1]
-                .as_integer()
-                .expect("Fail to parse current ts blockstamp !")
-                as u32);
+            let block_id = BlockId(
+                row[1]
+                    .as_integer()
+                    .expect("Fail to parse current ts blockstamp !") as u32,
+            );
             let block_hash = BlockHash(
                 Hash::from_hex(
                     row[0]
diff --git a/dal/block.rs b/dal/block.rs
index ae29b95d..4b2899c6 100644
--- a/dal/block.rs
+++ b/dal/block.rs
@@ -44,10 +44,11 @@ pub fn blockstamp_to_timestamp(blockstamp: &Blockstamp, db: &DuniterDB) -> Optio
         .next()
         .expect("convert blockstamp to timestamp failure at step 2 !")
     {
-        return Some(row[0]
-            .as_integer()
-            .expect("convert blockstamp to timestamp failure at step 3 !")
-            as u64);
+        return Some(
+            row[0]
+                .as_integer()
+                .expect("convert blockstamp to timestamp failure at step 3 !") as u64,
+        );
     }
     None
 }
@@ -298,10 +299,12 @@ impl DALBlock {
                 },
                 block: BlockDocument {
                     nonce,
-                    number: BlockId(row[3]
-                        .as_integer()
-                        .expect("dal::get_block() : fail to parse number !")
-                        as u32),
+                    number: BlockId(
+                        row[3]
+                            .as_integer()
+                            .expect("dal::get_block() : fail to parse number !")
+                            as u32,
+                    ),
                     pow_min: row[4]
                         .as_integer()
                         .expect("dal::get_block() : fail to parse pow min !")
-- 
GitLab