File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ use std::ops::Not;
1414use std:: path:: { Path , PathBuf } ;
1515use std:: process:: { self , Command } ;
1616
17+ use cargo_metadata:: { Metadata , MetadataCommand } ;
1718use rustc_version:: VersionMeta ;
1819use serde:: { Deserialize , Serialize } ;
19- use cargo_metadata:: { MetadataCommand , Metadata } ;
2020
2121use version:: * ;
2222
@@ -594,16 +594,16 @@ fn get_cargo_metadata() -> Metadata {
594594 for arg in ArgSplitFlagValue :: new (
595595 env:: args ( ) . skip ( 3 ) , // skip the program name, "miri" and "run" / "test"
596596 config_flag,
597- ) . flatten ( ) { // Only look at `Ok`
597+ )
598+ // Only look at `Ok`
599+ . flatten ( )
600+ {
598601 additional_options. push ( config_flag. to_string ( ) ) ;
599602 additional_options. push ( arg) ;
600603 }
601604
602- let metadata = MetadataCommand :: new ( )
603- . no_deps ( )
604- . other_options ( additional_options)
605- . exec ( )
606- . unwrap ( ) ;
605+ let metadata =
606+ MetadataCommand :: new ( ) . no_deps ( ) . other_options ( additional_options) . exec ( ) . unwrap ( ) ;
607607
608608 metadata
609609}
You can’t perform that action at this time.
0 commit comments