From 01a6109925151228f755a7fce7b384ca34dad13c Mon Sep 17 00:00:00 2001 From: Aleksei Trifonov Date: Fri, 29 Jul 2022 14:42:42 +0300 Subject: [PATCH] Fix formatting --- cargo-miri/bin.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cargo-miri/bin.rs b/cargo-miri/bin.rs index d11d3f15b88..9c98542be87 100644 --- a/cargo-miri/bin.rs +++ b/cargo-miri/bin.rs @@ -14,9 +14,9 @@ use std::path::{Path, PathBuf}; use std::process::{self, Command}; +use cargo_metadata::{Metadata, MetadataCommand}; use rustc_version::VersionMeta; use serde::{Deserialize, Serialize}; -use cargo_metadata::{MetadataCommand, Metadata}; use version::*; @@ -594,16 +594,16 @@ fn get_cargo_metadata() -> Metadata { for arg in ArgSplitFlagValue::new( env::args().skip(3), // skip the program name, "miri" and "run" / "test" config_flag, - ).flatten() { // Only look at `Ok` + ) + // Only look at `Ok` + .flatten() + { additional_options.push(config_flag.to_string()); additional_options.push(arg); } - let metadata = MetadataCommand::new() - .no_deps() - .other_options(additional_options) - .exec() - .unwrap(); + let metadata = + MetadataCommand::new().no_deps().other_options(additional_options).exec().unwrap(); metadata }