From 798b447720a712b5f1566f51dece9d0988f94faa Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Thu, 5 May 2022 13:43:41 +0200 Subject: Fix clippy --- src/garage/cli/layout.rs | 4 ++-- 1 file 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 { -- cgit v1.2.3