@@ -148,7 +148,7 @@ pub fn cli() -> App<'static, 'static> {
148
148
. subcommand (
149
149
SubCommand :: with_name ( "dump-testament" )
150
150
. about ( "Dump information about the build" )
151
- . setting ( AppSettings :: Hidden ) // Not for users, only CI
151
+ . setting ( AppSettings :: Hidden ) , // Not for users, only CI
152
152
)
153
153
. subcommand (
154
154
SubCommand :: with_name ( "show" )
@@ -183,13 +183,13 @@ pub fn cli() -> App<'static, 'static> {
183
183
. long ( "profile" )
184
184
. takes_value ( true )
185
185
. possible_values ( Profile :: names ( ) )
186
- . required ( false )
186
+ . required ( false ) ,
187
187
)
188
188
. arg (
189
189
Arg :: with_name ( "no-self-update" )
190
190
. help ( "Don't perform self-update when running the `rustup install` command" )
191
191
. long ( "no-self-update" )
192
- . takes_value ( false )
192
+ . takes_value ( false ) ,
193
193
)
194
194
. arg (
195
195
Arg :: with_name ( "force" )
@@ -223,7 +223,7 @@ pub fn cli() -> App<'static, 'static> {
223
223
Arg :: with_name ( "no-self-update" )
224
224
. help ( "Don't perform self update when running the `rustup update` command" )
225
225
. long ( "no-self-update" )
226
- . takes_value ( false )
226
+ . takes_value ( false ) ,
227
227
)
228
228
. arg (
229
229
Arg :: with_name ( "force" )
@@ -232,10 +232,7 @@ pub fn cli() -> App<'static, 'static> {
232
232
. takes_value ( false ) ,
233
233
) ,
234
234
)
235
- . subcommand (
236
- SubCommand :: with_name ( "check" )
237
- . about ( "Check for updates to Rust toolchains" )
238
- )
235
+ . subcommand ( SubCommand :: with_name ( "check" ) . about ( "Check for updates to Rust toolchains" ) )
239
236
. subcommand (
240
237
SubCommand :: with_name ( "default" )
241
238
. about ( "Set the default toolchain" )
@@ -245,8 +242,11 @@ pub fn cli() -> App<'static, 'static> {
245
242
. help ( TOOLCHAIN_ARG_HELP )
246
243
. required ( false ) ,
247
244
) ,
248
- )
249
- . subcommand (
245
+ ) ;
246
+
247
+ // We break the app creation here so that rustfmt can cope
248
+ // If rustfmt ceases to format this block, break it up further
249
+ app = app. subcommand (
250
250
SubCommand :: with_name ( "toolchain" )
251
251
. about ( "Modify or query the installed toolchains" )
252
252
. after_help ( TOOLCHAIN_HELP )
0 commit comments