Fix clippy
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

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

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 {