Skip to content
Myr

Avoid redundant field names

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by philipp · committed by David Peter · parent 3f79985 · Browse files · 2 files+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−3 removed

  • other:+3 added−3 removed

2 files+3 added−3 removed

modified:src/hyperfine/internal.rs+1 added-1 removed
121 unmodified lines
122 use approx::assert_relative_eq;123124 let create_result = |name: &str, mean| BenchmarkResult {125 command: name.into(),126 mean: mean,126 mean,127 stddev: 1.0,128 median: mean,129 user: mean,130 system: 0.0,
18 unmodified lines
modified:src/hyperfine/types.rs+2 added-2 removed
21 unmodified lines
2223impl<'a> Command<'a> {24 pub fn new(expression: &'a str) -> Command<'a> {25 Command {26 expression: expression,26 expression,27 parameter: None,28 }29 }3031 pub fn new_parametrized(expression: &'a str, parameter: &'a str, value: i32) -> Command<'a> {32 Command {33 expression: expression,33 expression,34 parameter: Some((parameter, value)),35 }36 }37
176 unmodified lines