summary refs log tree commit diff
path: root/qcow/src/refcount.rs
diff options
context:
space:
mode:
Diffstat (limited to 'qcow/src/refcount.rs')
-rw-r--r--qcow/src/refcount.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/qcow/src/refcount.rs b/qcow/src/refcount.rs
index 13906a1..a39dd3f 100644
--- a/qcow/src/refcount.rs
+++ b/qcow/src/refcount.rs
@@ -92,8 +92,7 @@ impl RefCount {
                 self.refblock_cache
                     .insert(table_index, table, |index, evicted| {
                         raw_file.write_refcount_block(ref_table[index], evicted.get_values())
-                    })
-                    .map_err(Error::EvictingRefCounts)?;
+                    }).map_err(Error::EvictingRefCounts)?;
             } else {
                 if block_addr_disk == 0 {
                     return Err(Error::NeedNewCluster);
@@ -173,8 +172,7 @@ impl RefCount {
             self.refblock_cache
                 .insert(table_index, table, |index, evicted| {
                     raw_file.write_refcount_block(ref_table[index], evicted.get_values())
-                })
-                .map_err(Error::EvictingRefCounts)?;
+                }).map_err(Error::EvictingRefCounts)?;
         }
         Ok(self.refblock_cache.get(&table_index).unwrap()[block_index])
     }
@@ -205,8 +203,7 @@ impl RefCount {
             self.refblock_cache
                 .insert(table_index, table, |index, evicted| {
                     raw_file.write_refcount_block(ref_table[index], evicted.get_values())
-                })
-                .map_err(Error::EvictingRefCounts)?;
+                }).map_err(Error::EvictingRefCounts)?;
         }
         // The index must exist as it was just inserted if it didn't already.
         Ok(Some(