aboutsummaryrefslogtreecommitdiff
path: root/src/table/gc.rs
diff options
context:
space:
mode:
authorTrinity Pointard <trinity.pointard@gmail.com>2021-04-23 21:42:52 +0200
committerAlex Auvolat <alex@adnab.me>2021-05-03 22:11:41 +0200
commitf5a0cf0414fc3db7affcbe7ffcf4e251a2afd192 (patch)
tree12c225c9456f18d96cf8a587ce9a308f433da9e7 /src/table/gc.rs
parentf05bb111c2e7dd77f2b34b82892bbfa8e6a063c1 (diff)
downloadgarage-f5a0cf0414fc3db7affcbe7ffcf4e251a2afd192.tar.gz
garage-f5a0cf0414fc3db7affcbe7ffcf4e251a2afd192.zip
fix clippy warnings on table
Diffstat (limited to 'src/table/gc.rs')
-rw-r--r--src/table/gc.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/table/gc.rs b/src/table/gc.rs
index 694a3789..2dcbcaa0 100644
--- a/src/table/gc.rs
+++ b/src/table/gc.rs
@@ -85,8 +85,8 @@ where
}
}
select! {
- _ = tokio::time::sleep(Duration::from_secs(10)).fuse() => (),
- _ = must_exit.changed().fuse() => (),
+ _ = tokio::time::sleep(Duration::from_secs(10)).fuse() => {},
+ _ = must_exit.changed().fuse() => {},
}
}
}
@@ -120,7 +120,7 @@ where
self.todo_remove_if_equal(&k[..], vhash)?;
}
- if entries.len() == 0 {
+ if entries.is_empty() {
// Nothing to do in this iteration
return Ok(false);
}
@@ -247,7 +247,7 @@ where
}
Ok(GcRPC::Ok)
}
- _ => Err(Error::Message(format!("Unexpected GC RPC"))),
+ _ => Err(Error::Message("Unexpected GC RPC".to_string())),
}
}
}