1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-26 19:23:22 +02:00

Always use a nightly rustfmt in dprint fmt (#1694)

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.
This commit is contained in:
Martin Geisler 2024-01-16 19:10:02 +01:00 committed by GitHub
parent 94b517461e
commit 312e1515ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@
"command": "yapf3",
"exts": ["py"]
}, {
"command": "rustfmt --edition 2021",
"command": "rustup run nightly rustfmt --edition 2021",
"exts": ["rs"]
}, {
"command": "msgcat -",