diff options
author | sharkdp <davidpeter@web.de> | 2018-11-21 19:55:58 +0100 |
---|---|---|
committer | sharkdp <davidpeter@web.de> | 2018-11-21 19:55:58 +0100 |
commit | a4cf1eaa295fcf4f7a14f1f51291b7c444988682 (patch) | |
tree | 4ef26d75ab84bb06c0cfb70ad9c1b6bda082d6d0 /src/main.rs | |
parent | 3144c4b96c873619ae274697df574219ea77e865 (diff) |
Format source codev1.4.0
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 9a0c49c..0d13f64 100644 --- a/src/main.rs +++ b/src/main.rs @@ -58,7 +58,8 @@ pub fn error(message: &str) -> ! { /// Runs the benchmark for the given commands fn run(commands: &Vec<Command>, options: &HyperfineOptions) -> io::Result<Vec<BenchmarkResult>> { - let shell_spawning_time = mean_shell_spawning_time(&options.shell, &options.output_style, options.show_output)?; + let shell_spawning_time = + mean_shell_spawning_time(&options.shell, &options.output_style, options.show_output)?; let mut timing_results = vec![]; @@ -191,7 +192,10 @@ fn build_hyperfine_options(matches: &ArgMatches) -> Result<HyperfineOptions, Opt _ => {} }; - options.shell = matches.value_of("shell").unwrap_or(&options.shell).to_string(); + options.shell = matches + .value_of("shell") + .unwrap_or(&options.shell) + .to_string(); if matches.is_present("ignore-failure") { options.failure_action = CmdFailureAction::Ignore; |