Use row, column with_capacity
This commit is contained in:
parent
11b2617b6c
commit
781e99d293
3 changed files with 15 additions and 13 deletions
|
|
@ -148,7 +148,7 @@ impl Application for App {
|
|||
}
|
||||
|
||||
fn view(&self) -> Element<'_, Message> {
|
||||
let mut column = widget::column().spacing(8).padding(8);
|
||||
let mut column = widget::column::with_capacity(8).spacing(8).padding(8);
|
||||
{
|
||||
let mut button = widget::button::standard("Open File");
|
||||
if self.dialog_opt.is_none() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue