Skip to content

Commit fd18b80

Browse files
do not depend on nightly toolchains
See rust-lang/rustfmt#3387 (comment)
1 parent e4fbc13 commit fd18b80

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile.toml

+6-4
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@
22

33
[tasks.format]
44
workspace = false
5-
toolchain = "nightly"
65
command = "cargo"
76
args = [
87
"fmt",
98
"--all",
109
"--",
1110
"--config",
12-
"imports_granularity=Module,group_imports=StdExternalCrate",
11+
"unstable_features=true",
12+
"--config",
13+
"imports_granularity=Module,group_imports=StdExternalCrate,reorder_imports=true",
1314
]
1415

1516
[tasks.format-check]
1617
# This task is used in CI. The nightly version needs to be kept in
1718
# sync with the check_fmt job in the ci.yml workflow.
1819
workspace = false
19-
toolchain = "nightly-2024-05-02"
2020
command = "cargo"
2121
args = [
2222
"fmt",
2323
"--all",
2424
"--check",
2525
"--",
2626
"--config",
27-
"imports_granularity=Module,group_imports=StdExternalCrate",
27+
"unstable_features=true",
28+
"--config",
29+
"imports_granularity=Module,group_imports=StdExternalCrate,reorder_imports=true",
2830
]

0 commit comments

Comments
 (0)