File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -293,14 +293,16 @@ impl CargoWorkspace {
293
293
}
294
294
meta. current_dir ( current_dir. as_os_str ( ) ) ;
295
295
296
+ let mut other_options = config. extra_args . clone ( ) ;
296
297
if !targets. is_empty ( ) {
297
- let other_options: Vec < _ > = targets
298
- . into_iter ( )
299
- . flat_map ( |target| [ "--filter-platform" . to_string ( ) , target ] )
300
- . chain ( config . extra_args . clone ( ) )
301
- . collect ( ) ;
302
- meta . other_options ( other_options ) ;
298
+ other_options. append (
299
+ & mut targets
300
+ . into_iter ( )
301
+ . flat_map ( |target| [ "--filter-platform" . to_string ( ) , target ] )
302
+ . collect ( ) ,
303
+ ) ;
303
304
}
305
+ meta. other_options ( other_options) ;
304
306
305
307
// FIXME: Fetching metadata is a slow process, as it might require
306
308
// calling crates.io. We should be reporting progress here, but it's
You can’t perform that action at this time.
0 commit comments