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

+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)),
}
}