Skip to content

Commit

Permalink
Always use a nightly rustfmt in dprint fmt (#1694)
Browse files Browse the repository at this point in the history
Without this, several of the formatting directives in our `rustfmt.toml`
file won’t have any effect. This will in turn lead to mismatches between
the formatting done locally and in CI.

This creates a dependency on `rustup`, but I think this is overall
better than silently ignoring the formatting directives.

From the discussion in #1682.
  • Loading branch information
mgeisler authored Jan 16, 2024
1 parent 94b5174 commit 312e151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"command": "yapf3",
"exts": ["py"]
}, {
"command": "rustfmt --edition 2021",
"command": "rustup run nightly rustfmt --edition 2021",
"exts": ["rs"]
}, {
"command": "msgcat -",
Expand Down

0 comments on commit 312e151

Please sign in to comment.