Use flatten instead of filter_map in layout example
This commit is contained in:
parent
81ecc4a67f
commit
5dbded61de
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ impl Application for Layout {
|
|||
),
|
||||
]
|
||||
.into_iter()
|
||||
.filter_map(std::convert::identity));
|
||||
.flatten());
|
||||
|
||||
column![example, controls].spacing(10).padding(20).into()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue