Fix redundant field names in struct initialization (redundant_field_names)
This commit is contained in:
parent
132b40c19e
commit
fe5cb47d40
|
@ -51,7 +51,7 @@ impl Login {
|
||||||
pub fn new(vars: Rc<console::Vars>) -> Login {
|
pub fn new(vars: Rc<console::Vars>) -> Login {
|
||||||
Login {
|
Login {
|
||||||
elements: None,
|
elements: None,
|
||||||
vars: vars,
|
vars,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ impl SettingsMenu {
|
||||||
SettingsMenu {
|
SettingsMenu {
|
||||||
_vars: vars,
|
_vars: vars,
|
||||||
elements: None,
|
elements: None,
|
||||||
show_disconnect_button: show_disconnect_button,
|
show_disconnect_button,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -769,7 +769,7 @@ macro_rules! element {
|
||||||
$oname: self.$oname.unwrap_or($oval),
|
$oname: self.$oname.unwrap_or($oval),
|
||||||
)*
|
)*
|
||||||
$(
|
$(
|
||||||
$nname: $nname,
|
$nname,
|
||||||
)*
|
)*
|
||||||
// Base fields
|
// Base fields
|
||||||
draw_index: self.draw_index,
|
draw_index: self.draw_index,
|
||||||
|
|
Loading…
Reference in New Issue