Skip to content

Release v0.3.0 fails with current rustfmt: --write-mode is rejected #12

Open

Description

@dpc00

Claude reports:

The version Package Control installs (v0.3.0) always fails with a current rustfmt, because it passes --write-mode=overwrite, which rustfmt no longer accepts. Sublime Text build 4215, Windows 11, rustfmt 1.10.0-stable, BeautifyRust v0.3.0 installed from Package Control.

Test: BeautifyRust on a saved .rs file containing fn main( ){let x=1 ;println!("{}",x);}. Console:

failed: exit_code: 1
Unrecognized option: 'write-mode'

and the error dialog "Beautify rust: rustfmt process call failed". The file was not changed.

The code on master no longer passes that option. With a folder copy of master the same file became

fn main() {
    let x = 1;
    println!("{}", x);
}

So the fix exists but the Package Control release is the old tag. Suggested: tag a new release (for example v0.3.1) from master.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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