Run 'cargo fmt'

This commit is contained in:
sharkdp committed 2018-05-22 22:57:51 +02:00
1 parent e6d31f5914
commit 22491e2385
12 files changed
+44 -34

No files matched your search

+10 -10
View File
@@ -29,24 +29,25 @@ cfg_if! {
extern crate approx;
use std::cmp;
use std::error::Error;
use std::env;
use std::error::Error;
use std::io;
use std::ops::Range;
use atty::Stream;
use colored::*;
use clap::ArgMatches;
use colored::*;
mod hyperfine;
use hyperfine::internal::write_benchmark_comparison;
use hyperfine::types::{BenchmarkResult, CmdFailureAction, Command, HyperfineOptions,
OutputStyleOption};
use hyperfine::benchmark::{mean_shell_spawning_time, run_benchmark};
use hyperfine::export::{ExportManager, ExportType};
use hyperfine::error::ParameterScanError;
use hyperfine::app::get_arg_matches;
use hyperfine::benchmark::{mean_shell_spawning_time, run_benchmark};
use hyperfine::error::ParameterScanError;
use hyperfine::export::{ExportManager, ExportType};
use hyperfine::internal::write_benchmark_comparison;
use hyperfine::types::{
BenchmarkResult, CmdFailureAction, Command, HyperfineOptions, OutputStyleOption,
};
/// Print error message to stderr and terminate
pub fn error(message: &str) -> ! {
@@ -56,8 +57,7 @@ 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.output_style, options.show_output)?;
let shell_spawning_time = mean_shell_spawning_time(&options.output_style, options.show_output)?;
let mut timing_results = vec![];