Avoid redundant field names

This commit is contained in:
philipp authored and David Peter committed 2019-07-17 21:11:44 +02:00
1 parent 3f79985473
commit 5e4e383dca
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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,
+2 -2
View File
@@ -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)),
}
}