Fix clippy
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Alex 2022-05-05 13:43:41 +02:00
parent 8814e7c056
commit 798b447720
Signed by: lx
GPG Key ID: 0E496D15096376BE
1 changed files with 2 additions and 2 deletions

View File

@ -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 {