-
Notifications
You must be signed in to change notification settings - Fork 393
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default rustfmt version to supplied rust version (#2660)
Modifies the default of `rustfmt_version` so that it uses the first version in the `versions` list. If there are multiple versions given then falls back to the original default of `DEFAULT_NIGHTLY_VERSION`. We tripped over this where supply a single Rust version (non-nightly), but started using nightly features in `rustfmt.toml` and could no longer format directly with `cargo fmt`. This helped align the versions of both toolchains. --------- Co-authored-by: Daniel Wagner-Hall <dwagnerhall@apple.com>
- Loading branch information
1 parent
0d8d3e0
commit df80ce6
Showing
3 changed files
with
10 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters