fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass
This commit is contained in:
parent
da7f1d6c45
commit
fb726197ea
28 changed files with 109 additions and 90 deletions
|
|
@ -334,7 +334,7 @@ pub async fn lock_update_hyperhive() -> Result<()> {
|
|||
/// Write the tool-groups file for `agent` and commit it atomically
|
||||
/// under `META_LOCK`. Ensures the JSON change is staged + committed
|
||||
/// before the next `prepare_deploy` or `sync_agents` runs, so the
|
||||
/// working tree is never left dirty by an untimely PermChange write.
|
||||
/// working tree is never left dirty by an untimely `PermChange` write.
|
||||
pub async fn commit_tool_groups(agent: &str, groups: &[String]) -> Result<()> {
|
||||
let _guard = META_LOCK.lock().await;
|
||||
crate::tool_groups::set_groups(agent, groups)?;
|
||||
|
|
@ -467,11 +467,7 @@ pub async fn bulk_commit_topology(
|
|||
.iter()
|
||||
.filter_map(|(child, new_parent)| {
|
||||
let old = topo_before.get(*child).cloned().flatten();
|
||||
if old.as_deref() != *new_parent {
|
||||
Some((child.to_string(), old))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
(old.as_deref() != *new_parent).then_some((child.to_string(), old))
|
||||
})
|
||||
.collect();
|
||||
Ok(changed)
|
||||
|
|
|
|||
Loading…
Reference in a new issue