Skip to content

Commit a0dbeea

Browse files
committed
Use named arguments for formatting usage message.
It was getting a bit awkward.
1 parent f0e3258 commit a0dbeea

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/librustc_driver/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -783,14 +783,14 @@ fn usage(verbose: bool, include_unstable_options: bool) {
783783
} else {
784784
""
785785
};
786-
println!("{}{}\nAdditional help:
786+
println!("{options}{at_path}\nAdditional help:
787787
-C help Print codegen options
788788
-W help \
789-
Print 'lint' options and default settings{}{}\n",
790-
options.usage(message),
791-
at_path,
792-
nightly_help,
793-
verbose_help);
789+
Print 'lint' options and default settings{nightly}{verbose}\n",
790+
options = options.usage(message),
791+
at_path = at_path,
792+
nightly = nightly_help,
793+
verbose = verbose_help);
794794
}
795795

796796
fn print_wall_help() {

0 commit comments

Comments
 (0)