Skip to content

Formatting is still inconsistent despite rust-toolchain.toml #956

Closed

Description

@spacebear21

Other contributors have ran into formatting issues despite the rust-toolchain.toml enforcing the nightly toolchain. Most recently @bc1cindy confirmed that cargo fmt applies a bunch of formatting changes to the master branch despite this output of rustup show:

Default host: aarch64-apple-darwin
     rustup home:  /Users/cindyvicentino/.rustup

     installed toolchains
     --------------------
     stable-aarch64-apple-darwin (default)
     nightly-aarch64-apple-darwin (active)

     active toolchain
     ----------------
     name: nightly-aarch64-apple-darwin
     active because: overridden by '/Users/cindyvicentino/dev/rust-payjoin/rust-toolchain.toml'
     installed targets:
       aarch64-apple-darwin

I wonder if we need to be more explicit about the specific nightly version, or maybe even add a rustfmt.toml?

Activity

  1. zealsham commented on Aug 14, 2025

    @zealsham
    Collaborator

    The repo already have a rustfmt.toml file @spacebear21

  2. spacebear21 commented on Aug 14, 2025

    @spacebear21
    CollaboratorAuthor

    Ah yes... reading is hard.

  3. DanGould commented on Aug 15, 2025

    @DanGould
    Member

    I think this is best served by getting a nix flake in order #457 with one precise cargo fmt command that makes the developer environment reproducible.

    ping @thebrandonlucas

  4. bc1cindy commented on Aug 16, 2025

    @bc1cindy
    Contributor

    YAY! Found it!!

    It was a conflict with homebrew rust! Uninstalled it and now the format test works perfectly in CI!

    All checks passing in #960 🎉

  5. bc1cindy commented on Aug 16, 2025

    @bc1cindy
    Contributor

    YAY! Found it!!

    It was a conflict with homebrew rust! Uninstalled it and now the format test works perfectly in CI!

    All checks passing in #960 🎉

    All checks passing in #962 too

  6. spacebear21 commented on Aug 17, 2025

    @spacebear21
    CollaboratorAuthor

    Nice find! Closing this issue now in favor of #457

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