Skip to content

fix(driver): repair the botched match conversion in run_direct - #1760

Merged
caomengxuan666 merged 1 commit into
mainfrom
fix/driver-match-residue
Nov 15, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
fix/driver-match-residue

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Breakage introduced by #1751 (rm wire): the if/else-if chain was half-converted to a match — } else if name == "rm" { residue after the tail arm plus a stray second match winux_cmds::dispatch opening. driver/main.rs has been invalid Rust (one unclosed {) and every main build leg has been red since; the i18n-drift job crashed on the same file (extractor: unclosed Rust source delimiter).

Repaired to the single-match form #1751 intended (tail/rm/tty/test/[/nohup/touch arms + dispatch fallback). Command semantics byte-identical.

Verified: driver builds clean; winux-cmds lib 975/0; extractor tokenizes the file and the rust2/crates extraction pass runs (401 messages).

#1751 (rm wire) converted run_direct�s if/else-if chain into a match
but left residue: a  after the tail arm and
a stray second  opening before the tty
arm. Result: driver/main.rs is invalid Rust — one unclosed  — and
every main build leg has been failing since (#1750/#1751 landed).

The repaired form is a single match: tail, rm (body re-indented to
arm depth), tty/test/[/nohup/touch arms direct, dispatch fallback as
the  arm. Byte-identical command semantics; the structure is what
#1751 intended.

Verified: cargo build -p winuxcmd-driver clean; winux-cmds lib
975/0; scripts/i18n_rust.py tokenizes the repaired file and the
rust2/crates extraction pass runs (401 messages) — the i18n-drift
job�s crash (unclosed Rust source delimiter in main.rs) is the same
breakage surfacing through the extractor.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant