aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/layout/version.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
committerAlex Auvolat <alex@adnab.me>2023-12-11 15:31:47 +0100
commit85b5a6bcd11c0a7651e4c589569e1935a3d18e46 (patch)
tree5aabcc8e161dfb304514e23e59f9ccf5a52a6d0a /src/rpc/layout/version.rs
parente4f493b48156e6e30f16fba10f300f6cb5fe0b0d (diff)
downloadgarage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.tar.gz
garage-85b5a6bcd11c0a7651e4c589569e1935a3d18e46.zip
fix some clippy lints
Diffstat (limited to 'src/rpc/layout/version.rs')
-rw-r--r--src/rpc/layout/version.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpc/layout/version.rs b/src/rpc/layout/version.rs
index 5b307156..ee4b2821 100644
--- a/src/rpc/layout/version.rs
+++ b/src/rpc/layout/version.rs
@@ -137,19 +137,19 @@ impl LayoutVersion {
// ===================== internal information extractors ======================
pub(crate) fn expect_get_node_capacity(&self, uuid: &Uuid) -> u64 {
- self.get_node_capacity(&uuid)
+ self.get_node_capacity(uuid)
.expect("non-gateway node with zero capacity")
}
pub(crate) fn expect_get_node_zone(&self, uuid: &Uuid) -> &str {
- self.get_node_zone(&uuid).expect("node without a zone")
+ self.get_node_zone(uuid).expect("node without a zone")
}
/// Returns the sum of capacities of non gateway nodes in the cluster
fn get_total_capacity(&self) -> u64 {
let mut total_capacity = 0;
for uuid in self.nongateway_nodes() {
- total_capacity += self.expect_get_node_capacity(&uuid);
+ total_capacity += self.expect_get_node_capacity(uuid);
}
total_capacity
}