mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-01 17:00:18 +00:00
Remove command_with_unused_parameters field
This commit is contained in:
1 parent
ae0035ad56
commit
af4422d212
7 files changed
+38
-92
No files matched your search
@@ -8,7 +8,7 @@ use std::cmp;
|
||||
use std::io::{self, Write};
|
||||
use std::time::Instant;
|
||||
|
||||
use crate::benchmark::benchmark_result::BenchmarkRun;
|
||||
use crate::benchmark::benchmark_result::{BenchmarkRun, Parameter};
|
||||
use crate::benchmark::executor::BenchmarkIteration;
|
||||
use crate::command::Command;
|
||||
use crate::options::{
|
||||
@@ -489,7 +489,6 @@ impl<'a> Benchmark<'a> {
|
||||
|
||||
Ok(BenchmarkResult {
|
||||
command: self.command.get_name(),
|
||||
command_with_unused_parameters: self.command.get_name_with_unused_parameters(),
|
||||
runs: times_real
|
||||
.iter()
|
||||
.zip(times_user.iter())
|
||||
@@ -520,7 +519,7 @@ impl<'a> Benchmark<'a> {
|
||||
name.to_string(),
|
||||
Parameter {
|
||||
value: value.to_string(),
|
||||
is_unused: self.command.is_parameter_unused(name),
|
||||
is_unused: self.command.is_parameter_unused(&name),
|
||||
},
|
||||
)
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user