Use flatten instead of filter_map in layout example

This commit is contained in:
Héctor Ramón Jiménez 2024-01-10 03:07:10 +01:00
parent 81ecc4a67f
commit 5dbded61de
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -84,7 +84,7 @@ impl Application for Layout {
),
]
.into_iter()
.filter_map(std::convert::identity));
.flatten());
column![example, controls].spacing(10).padding(20).into()
}