Format source code

This commit is contained in:
sharkdp committed 2018-11-21 19:55:58 +01:00
1 parent 3144c4b96c
commit a4cf1eaa29
4 files changed
+146 -99

No files matched your search

+6 -2
View File
@@ -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;