aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-05-05 13:43:41 +0200
committerAlex Auvolat <alex@adnab.me>2022-05-05 13:43:41 +0200
commit798b447720a712b5f1566f51dece9d0988f94faa (patch)
treed32e8c0e7712e4076bb2b218616d323dfd6e4227
parent8814e7c0569f78c95647b2a9220d54883065cacd (diff)
downloadgarage-fix-layout-show.tar.gz
garage-fix-layout-show.zip
Fix clippyfix-layout-show
-rw-r--r--src/garage/cli/layout.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/garage/cli/layout.rs b/src/garage/cli/layout.rs
index 24a7b541..88941d78 100644
--- a/src/garage/cli/layout.rs
+++ b/src/garage/cli/layout.rs
@@ -335,14 +335,14 @@ pub fn print_staging_role_changes(layout: &ClusterLayout) -> bool {
.staging
.items()
.iter()
- .any(|(k, _, v)| layout.roles.get(&k) != Some(v));
+ .any(|(k, _, v)| layout.roles.get(k) != Some(v));
if has_changes {
println!();
println!("==== STAGED ROLE CHANGES ====");
let mut table = vec!["ID\tTags\tZone\tCapacity".to_string()];
for (id, _, role) in layout.staging.items().iter() {
- if layout.roles.get(&id) == Some(role) {
+ if layout.roles.get(id) == Some(role) {
continue;
}
if let Some(role) = &role.0 {