style: cargo fmt over the phase-13 merge — mechanical, no behavior change

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
archipelago
2026-08-09 15:44:18 -04:00
co-authored by Claude Fable 5
parent cb840fd36f
commit e465563cbd
28 changed files with 283 additions and 182 deletions
+14 -9
View File
@@ -927,13 +927,12 @@ mod tests {
#[test]
fn every_backend_installed_leaves_no_orphans() {
let orphans = orphan_companions(&ids(&[
"bitcoin-knots",
"lnd",
"electrumx",
"fedimint",
]));
assert!(names(&orphans).is_empty(), "unexpected orphans: {:?}", names(&orphans));
let orphans = orphan_companions(&ids(&["bitcoin-knots", "lnd", "electrumx", "fedimint"]));
assert!(
names(&orphans).is_empty(),
"unexpected orphans: {:?}",
names(&orphans)
);
}
fn name_set(specs: &[&'static CompanionSpec]) -> std::collections::HashSet<&'static str> {
@@ -965,7 +964,10 @@ mod tests {
assert!(due.is_empty());
// A pass after the grace window reaps.
let due = due_after_grace(orphans, &names_seen, &mut since, start + ORPHAN_GRACE);
assert_eq!(names(&due), vec!["archy-electrs-ui", "archy-fedimint-ui", "archy-lnd-ui"]);
assert_eq!(
names(&due),
vec!["archy-electrs-ui", "archy-fedimint-ui", "archy-lnd-ui"]
);
}
#[test]
@@ -989,7 +991,10 @@ mod tests {
!names(&due).contains(&"archy-lnd-ui"),
"lnd companion reaped even though lnd came back"
);
assert!(!since.contains_key("archy-lnd-ui"), "stale clock kept for lnd");
assert!(
!since.contains_key("archy-lnd-ui"),
"stale clock kept for lnd"
);
// lnd goes away for real. It must wait a fresh full grace period.
let orphans = orphan_companions(&ids(&["bitcoin-knots"]));
@@ -5989,7 +5989,8 @@ app:
}
#[tokio::test]
async fn manifest_generated_files_can_overwrite_when_declared() {let rt = Arc::new(MockRuntime::default());
async fn manifest_generated_files_can_overwrite_when_declared() {
let rt = Arc::new(MockRuntime::default());
let orch = orch_with(rt.clone()).await;
let data_dir = tempfile::tempdir_in("/var/lib/archipelago").unwrap();