aboutsummaryrefslogtreecommitdiff
path: root/src/garage/repair.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/garage/repair.rs')
-rw-r--r--src/garage/repair.rs26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/garage/repair.rs b/src/garage/repair.rs
index 75828f24..17e14b8b 100644
--- a/src/garage/repair.rs
+++ b/src/garage/repair.rs
@@ -67,13 +67,12 @@ impl Repair {
let mut i = 0;
while !*must_exit.borrow() {
- let item_bytes = {
- let (k, v) = match self.garage.version_table.data.store.get_gt(pos)? {
- Some(pair) => pair,
- None => break,
- };
- pos = k;
- v
+ let item_bytes = match self.garage.version_table.data.store.get_gt(pos)? {
+ Some((k, v)) => {
+ pos = k;
+ v
+ }
+ None => break,
};
i += 1;
@@ -119,13 +118,12 @@ impl Repair {
let mut i = 0;
while !*must_exit.borrow() {
- let item_bytes = {
- let (k, v) = match self.garage.block_ref_table.data.store.get_gt(pos)? {
- Some(pair) => pair,
- None => break,
- };
- pos = k;
- v
+ let item_bytes = match self.garage.block_ref_table.data.store.get_gt(pos)? {
+ Some((k, v)) => {
+ pos = k;
+ v
+ }
+ None => break,
};
i += 1;