Moved types::Second and types::Unit to new unit module

Also review feedback.
This commit is contained in:
Jason Peacock authored and David Peter committed 2018-11-04 10:15:05 +01:00
1 parent f0b6f130ea
commit 3aa26a3e27
17 files changed
+73 -64

No files matched your search

+5 -4
View File
@@ -46,8 +46,9 @@ use hyperfine::error::{OptionsError, ParameterScanError};
use hyperfine::export::{ExportManager, ExportType};
use hyperfine::internal::write_benchmark_comparison;
use hyperfine::types::{
BenchmarkResult, Unit, CmdFailureAction, Command, HyperfineOptions, OutputStyleOption,
BenchmarkResult, CmdFailureAction, Command, HyperfineOptions, OutputStyleOption,
};
use hyperfine::units::Unit;
/// Print error message to stderr and terminate
pub fn error(message: &str) -> ! {
@@ -95,9 +96,9 @@ fn main() {
let export_manager = build_export_manager(&matches);
let commands = build_commands(&matches);
let res = match &options {
&Ok(ref opts) => run(&commands, &opts),
&Err(ref e) => error(e.description()),
let res = match options {
Ok(ref opts) => run(&commands, &opts),
Err(ref e) => error(e.description()),
};
match res {