mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-02 01:00:31 +00:00
Format source code
This commit is contained in:
1 parent
3144c4b96c
commit
a4cf1eaa29
4 files changed
+146
-99
No files matched your search
+6
-2
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user