mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 08:50:19 +00:00
Moved types::Second and types::Unit to new unit module
Also review feedback.
This commit is contained in:
1 parent
f0b6f130ea
commit
3aa26a3e27
17 files changed
+73
-64
No files matched your search
+5
-4
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user