mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +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
@@ -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