Skip to content

crates/forge-tui: Fix rustfmt violation in file_explorer - #2

Merged
mohitranka merged 1 commit into
mainfrom
fix/rustfmt-file-explorer
Jul 29, 2026
Merged

mohitranka merged 1 commit into
mainfrom
fix/rustfmt-file-explorer

Conversation

@mohitranka

@mohitranka mohitranka commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

The Check formatting step of the CI workflow fails on main because language_hint in crates/forge-tui/src/file_explorer.rs has a matches! call that exceeds the line width, so cargo fmt --all -- --check reports a diff. This applies exactly what rustfmt wants, so the job goes green again.

    if matches!(
        lower.as_str(),
        "go.mod" | "go.sum" | "go.work" | "go.work.sum"
    ) {
        return Some("");
    }

No behavior change; cargo fmt --all -- --check is clean after the edit. This came out of an autofix pass on #1 (the Blacksmith runner migration), but that PR was already merged and the formatting failure is pre-existing on main and unrelated to the migration, so the fix lands here instead.


View with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is enabled.

@mohitranka
mohitranka merged commit 4bb9f58 into main Jul 29, 2026
1 of 2 checks passed
mohitranka added a commit that referenced this pull request Aug 1, 2026
crates/forge-tui: Fix rustfmt violation in file_explorer
mohitranka added a commit that referenced this pull request Aug 21, 2026
crates/forge-tui: Fix rustfmt violation in file_explorer
mohitranka added a commit that referenced this pull request Sep 11, 2026
crates/forge-tui: Fix rustfmt violation in file_explorer
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