Fix formatting
This commit is contained in:
parent
38e7bcf7f1
commit
01a6109925
@ -14,9 +14,9 @@
|
|||||||
use std::path::{Path, PathBuf};
|
use std::path::{Path, PathBuf};
|
||||||
use std::process::{self, Command};
|
use std::process::{self, Command};
|
||||||
|
|
||||||
|
use cargo_metadata::{Metadata, MetadataCommand};
|
||||||
use rustc_version::VersionMeta;
|
use rustc_version::VersionMeta;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
use cargo_metadata::{MetadataCommand, Metadata};
|
|
||||||
|
|
||||||
use version::*;
|
use version::*;
|
||||||
|
|
||||||
@ -594,16 +594,16 @@ fn get_cargo_metadata() -> Metadata {
|
|||||||
for arg in ArgSplitFlagValue::new(
|
for arg in ArgSplitFlagValue::new(
|
||||||
env::args().skip(3), // skip the program name, "miri" and "run" / "test"
|
env::args().skip(3), // skip the program name, "miri" and "run" / "test"
|
||||||
config_flag,
|
config_flag,
|
||||||
).flatten() { // Only look at `Ok`
|
)
|
||||||
|
// Only look at `Ok`
|
||||||
|
.flatten()
|
||||||
|
{
|
||||||
additional_options.push(config_flag.to_string());
|
additional_options.push(config_flag.to_string());
|
||||||
additional_options.push(arg);
|
additional_options.push(arg);
|
||||||
}
|
}
|
||||||
|
|
||||||
let metadata = MetadataCommand::new()
|
let metadata =
|
||||||
.no_deps()
|
MetadataCommand::new().no_deps().other_options(additional_options).exec().unwrap();
|
||||||
.other_options(additional_options)
|
|
||||||
.exec()
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
metadata
|
metadata
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user