Skip to content

Pin the Rust toolchain so rustfmt does not differ per checkout #317

Description

@v0l

There is no rust-toolchain.toml in the repo, and CI installs dtolnay/rust-toolchain@stable (.github/workflows/build.yml:177), so every checkout formats with whatever stable it happens to have.

It already bites: cargo fmt --check flags lnvps_api_common/src/exchange.rs:621 on some checkouts and not others, on master (d72547f) as well as on branches, so the noise attaches itself to whichever diff is open at the time. Goran hit it reviewing #316; this checkout is clean at rustfmt 1.8.0-stable (rustc 1.94.1).

Add a rust-toolchain.toml pinning channel with the rustfmt and clippy components, then reformat once so the tree is clean under the pinned version.

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

    refactorInternal restructuring without behaviour change

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions