diff options
author | Alex Auvolat <alex@adnab.me> | 2022-05-05 13:43:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-05-05 13:43:41 +0200 |
commit | 798b447720a712b5f1566f51dece9d0988f94faa (patch) | |
tree | d32e8c0e7712e4076bb2b218616d323dfd6e4227 /src/garage/cli/layout.rs | |
parent | 8814e7c0569f78c95647b2a9220d54883065cacd (diff) | |
download | garage-fix-layout-show.tar.gz garage-fix-layout-show.zip |
Fix clippyfix-layout-show
Diffstat (limited to 'src/garage/cli/layout.rs')
-rw-r--r-- | src/garage/cli/layout.rs | 4 |
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 { |