Tighten unreachable arm in reconcile_orphans
Match Complete | Failed explicitly so adding a new RunState
variant fails compilation instead of silently hitting the
catch-all unreachable.
Assisted-by: Claude Opus 4.7 (1M context) via Claude Code
diff --git a/src/ci/run.rs b/src/ci/run.rs
index 7e7fa4a..6fc5c6c 100644
--- a/src/ci/run.rs
+++ b/src/ci/run.rs
@@ -197,7 +197,9 @@ impl Runs {
);
}
}
- _ => unreachable!("scan_orphans only returns pending/active"),
+ RunState::Complete | RunState::Failed => {
+ unreachable!("scan_orphans only returns pending/active")
+ }
}
}