aboutsummaryrefslogtreecommitdiff
path: root/src/garage/repair.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-06 14:08:19 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-06 14:08:19 +0200
commit0ab21e780e8b944fb2e231c45b3777add27f368d (patch)
tree00db8413787b9ea132da45fcd70bb683a7b5470d /src/garage/repair.rs
parenta77efd7ca6a02b9c668607e67efcaeeafd36a8bd (diff)
downloadgarage-0ab21e780e8b944fb2e231c45b3777add27f368d.tar.gz
garage-0ab21e780e8b944fb2e231c45b3777add27f368d.zip
Small syntax changes
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;