diff options
author | 2024-01-10 03:07:10 +0100 | |
---|---|---|
committer | 2024-01-10 10:01:50 +0100 | |
commit | 5dbded61dea19f77eb370e08e72acfa20ffd1a86 (patch) | |
tree | c3febdbebc6d2655a7903fc8b81272db8e5e467d /examples/layout | |
parent | 81ecc4a67f7982c6300a4d5e8ec4e8aac8cbd881 (diff) | |
download | iced-5dbded61dea19f77eb370e08e72acfa20ffd1a86.tar.gz iced-5dbded61dea19f77eb370e08e72acfa20ffd1a86.tar.bz2 iced-5dbded61dea19f77eb370e08e72acfa20ffd1a86.zip |
Use `flatten` instead of `filter_map` in `layout` example
Diffstat (limited to 'examples/layout')
-rw-r--r-- | examples/layout/src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/layout/src/main.rs b/examples/layout/src/main.rs index 6d02434d..448d2995 100644 --- a/examples/layout/src/main.rs +++ b/examples/layout/src/main.rs @@ -84,7 +84,7 @@ impl Application for Layout { ), ] .into_iter() - .filter_map(std::convert::identity)); + .flatten()); column![example, controls].spacing(10).padding(20).into() } |