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 {
|
||||
Login {
|
||||
elements: None,
|
||||
vars: vars,
|
||||
vars,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ impl SettingsMenu {
|
|||
SettingsMenu {
|
||||
_vars: vars,
|
||||
elements: None,
|
||||
show_disconnect_button: show_disconnect_button,
|
||||
show_disconnect_button,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -769,7 +769,7 @@ macro_rules! element {
|
|||
$oname: self.$oname.unwrap_or($oval),
|
||||
)*
|
||||
$(
|
||||
$nname: $nname,
|
||||
$nname,
|
||||
)*
|
||||
// Base fields
|
||||
draw_index: self.draw_index,
|
||||
|
|
Loading…
Reference in New Issue