Skip to content

Commit

Permalink
rustfmt: drop nightly-gating of the --style-edition flag registration
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jan 7, 2025
1 parent fb546ee commit b77eb96
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tools/rustfmt/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,12 @@ fn make_opts() -> Options {
"Set options from command line. These settings take priority over .rustfmt.toml",
"[key1=val1,key2=val2...]",
);
opts.optopt(
"",
"style-edition",
"The edition of the Style Guide.",
"[2015|2018|2021|2024]",
);

if is_nightly {
opts.optflag(
Expand All @@ -186,12 +192,6 @@ fn make_opts() -> Options {
"skip-children",
"Don't reformat child modules (unstable).",
);
opts.optopt(
"",
"style-edition",
"The edition of the Style Guide (unstable).",
"[2015|2018|2021|2024]",
);
}

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

0 comments on commit b77eb96

Please sign in to comment.