mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-10-30 00:38:56 +00:00
Avoid redundant field names
This commit is contained in:
1 parent
3f79985473
commit
5e4e383dca
2 files changed
+3
-3
No files matched your search
@@ -123,7 +123,7 @@ fn test_compute_relative_speed() {
|
||||
|
||||
let create_result = |name: &str, mean| BenchmarkResult {
|
||||
command: name.into(),
|
||||
mean: mean,
|
||||
mean,
|
||||
stddev: 1.0,
|
||||
median: mean,
|
||||
user: mean,
|
||||
|
||||
@@ -23,14 +23,14 @@ pub struct Command<'a> {
|
||||
impl<'a> Command<'a> {
|
||||
pub fn new(expression: &'a str) -> Command<'a> {
|
||||
Command {
|
||||
expression: expression,
|
||||
expression,
|
||||
parameter: None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new_parametrized(expression: &'a str, parameter: &'a str, value: i32) -> Command<'a> {
|
||||
Command {
|
||||
expression: expression,
|
||||
expression,
|
||||
parameter: Some((parameter, value)),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user