We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--style-edition
1 parent 7e7282e commit 4bfa1ddCopy full SHA for 4bfa1dd
src/tools/rustfmt/src/bin/main.rs
@@ -162,6 +162,13 @@ fn make_opts() -> Options {
162
"[key1=val1,key2=val2...]",
163
);
164
165
+ opts.optopt(
166
+ "",
167
+ "style-edition",
168
+ "The edition of the Style Guide (unstable).",
169
+ "[2015|2018|2021|2024]",
170
+ );
171
+
172
if is_nightly {
173
opts.optflag(
174
"",
@@ -186,12 +193,6 @@ fn make_opts() -> Options {
186
193
"skip-children",
187
194
"Don't reformat child modules (unstable).",
188
195
189
- opts.optopt(
190
- "",
191
- "style-edition",
192
- "The edition of the Style Guide (unstable).",
- "[2015|2018|2021|2024]",
- );
196
}
197
198
opts.optflag("v", "verbose", "Print verbose output");
0 commit comments