Skip to content

Linux: cargo fmt --all -- --check fails on linux branch (Fast checks CI red) #1954

Description

@Seha16

Summary

The linux branch fails cargo fmt --all -- --check under the pinned toolchain, so the Fast checks job in .github/workflows/build-linux.yml is red. The format step runs first, so build / clippy / tests never execute in that job.

Reproduce

From linux/, on the pinned toolchain (rust-toolchain.toml -> 1.93, rustfmt 1.8.0):

cargo fmt --all -- --check

Exits non-zero with formatting diffs in:

  • crates/app/src/ui/app/mod.rs
  • crates/app/src/ui/browse_tab.rs

The drift is whitespace / line-wrap only: a stray blank line plus a few builder chains that fit within max_width = 120 and should be collapsed onto one line.

Environment

  • Toolchain: 1.93.1, rustfmt 1.8.0-stable, matching CI's dtolnay/rust-toolchain@1.93.
  • rustfmt.toml: edition = 2024, max_width = 120, use_small_heuristics = "Default".

cargo clippy --all-targets -- -D warnings, cargo build --workspace, and cargo test --workspace --lib all pass locally. Formatting is the only failing gate.

Fix

Run cargo fmt --all. Pure formatting, no logic change (2 files, +4 / -12).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions