Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3d6fdff

Browse files
jieyouxupietroalbini
authored andcommittedJan 7, 2025
rustfmt: drop nightly-gating of the --style-edition flag registration
1 parent 031ad72 commit 3d6fdff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/tools/rustfmt/src/bin/main.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ fn make_opts() -> Options {
161161
"Set options from command line. These settings take priority over .rustfmt.toml",
162162
"[key1=val1,key2=val2...]",
163163
);
164+
opts.optopt(
165+
"",
166+
"style-edition",
167+
"The edition of the Style Guide.",
168+
"[2015|2018|2021|2024]",
169+
);
164170

165171
if is_nightly {
166172
opts.optflag(
@@ -186,12 +192,6 @@ fn make_opts() -> Options {
186192
"skip-children",
187193
"Don't reformat child modules (unstable).",
188194
);
189-
opts.optopt(
190-
"",
191-
"style-edition",
192-
"The edition of the Style Guide (unstable).",
193-
"[2015|2018|2021|2024]",
194-
);
195195
}
196196

197197
opts.optflag("v", "verbose", "Print verbose output");

0 commit comments

Comments
 (0)
Failed to load comments.