fix(rust): drop the stray spaces in the running-server handoff line #34
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/rust-handoff-spaces"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found re-walking Rust phase 18 §34.3 step 7 on Debian 12 with the released v0.3.1 binary. The step passed; this is the only thing it turned up.
The defect
After
install --game ruston a running server, the handoff printed:When a source line was wrapped, a run of spaces ended up inside the string literal of the D156 line (installer#29). The existing test only checked fragments of the sentence, and the broken version contained them all, so nothing caught it.
The change
src/rustgame/sidecar.rs.the_print_config_document_parsesnow compares the whole first line of the running-server handoff. I checked that it fails against the pre-fix literal (the assertion shows the gap) and passes with the fix.src/for the same shape, a single-line literal with a long gap mid-sentence. This was the only one. The other hits are deliberate: aligned columns (verified sha256) and indentation after a\n.cargo fmt --check,cargo clippy --all-targets -- -D warningsandcargo testare green (163 + 9).Merging releases v0.3.2.
🤖 Generated with Claude Code
https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
The existing assertions checked fragments ("doctor --game rust --server-id alpha"), which the stray-space version also contained. The whole first line is now compared, so a wrapped source line cannot put its indent back into the sentence. Fails against the pre-fix literal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY