style: corrects the use of ';' to improve readability

- remove unnecessary semicolon
and enable lint warning: unnecessary semicolon
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#unnecessary_semicolon
- add `;` to the last statement for consitent formatting
and enable lint `clippy::semicolon_if_nothing_returned`
warning: consider adding a `;` to the last statement for consistent formatting
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.93.0/index.html#semicolon_if_nothing_returned
This commit is contained in:
Gwen Lg
2026-01-26 14:25:05 +01:00
committed by Alex
parent 08fd6e659f
commit f59a8b7f62
38 changed files with 71 additions and 69 deletions
+4 -4
View File
@@ -481,7 +481,7 @@ impl System {
.iter()
.filter(|(_, _, v)| matches!(v, NodeRoleV(Some(r)) if r.capacity.is_some()))
.map(|(n, _, _)| *n),
)
);
}
let storage_nodes_ok = storage_nodes.iter().filter(|x| node_up(x)).count();
@@ -682,7 +682,7 @@ impl System {
// Add peer list from list stored on disk
if let Ok(peers) = self.persist_peer_list.load_async().await {
ping_list.extend(peers.0.iter().map(|(id, addr)| ((*id).into(), *addr)))
ping_list.extend(peers.0.iter().map(|(id, addr)| ((*id).into(), *addr)));
}
// Fetch peer list from Consul
@@ -705,9 +705,9 @@ impl System {
match create_kubernetes_crd().await {
Ok(()) => (),
Err(e) => {
error!("Failed to create kubernetes custom resource: {}", e)
error!("Failed to create kubernetes custom resource: {}", e);
}
};
}
}
match get_kubernetes_nodes(k).await {