Pin the Rust toolchain so rustfmt does not differ per checkout
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- build-system, ci-cd
Research direction
Start with .github/workflows/build.yml around line 177 and inspect the formatting discrepancy at lnvps_api_common/src/exchange.rs:621. Add rust-toolchain.toml with the requested channel, rustfmt, and clippy components, then reformat the tree and run cargo fmt --check to confirm it is clean under the pinned toolchain.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- Rust
- Stars
- 9
- Forks
- 2
- Avg merge
- 21h 10m
- Merged PRs (30d)
- 24
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LNVPS/api
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 58/100
-
Readonly vm Opendatabase enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
api refactor
Difficulty 3/5 1-2 days Newbie friendliness 72/100
-
api database enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·