style(journey): satisfy clippy::manual_assert in the arming gate

`-D warnings` with pedantic rejects an `if`-then-`panic!`. Same
semantics: the arming variable only makes a missing binary fatal, it
never decides whether the pin runs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lv428Fth9LRtffwJSsqH7T
This commit is contained in:
Levi Neuwirth 2026-07-30 21:16:29 -04:00
parent a62dbfb4d3
commit 52d7e5e1eb
1 changed files with 4 additions and 3 deletions

View File

@ -1503,9 +1503,10 @@ fn journey_step9_the_prompt_runs_in_the_directory_it_captured() {
#[test]
fn journey_step9_the_offered_command_builds_the_project() {
if !binary_available("cargo") {
if std::env::var_os("PMACS_REQUIRE_CARGO_BUILD").is_some() {
panic!("PMACS_REQUIRE_CARGO_BUILD is set but `cargo` is not on PATH");
}
assert!(
std::env::var_os("PMACS_REQUIRE_CARGO_BUILD").is_none(),
"PMACS_REQUIRE_CARGO_BUILD is set but `cargo` is not on PATH"
);
eprintln!("skipping: `cargo` is not on PATH");
return;
}