summaryrefslogtreecommitdiffstats
path: root/examples/events/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/events/src/main.rs')
-rw-r--r--examples/events/src/main.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/events/src/main.rs b/examples/events/src/main.rs
index 334b012d..fc51ac4a 100644
--- a/examples/events/src/main.rs
+++ b/examples/events/src/main.rs
@@ -82,8 +82,7 @@ impl Application for Events {
self.last
.iter()
.map(|event| text(format!("{event:?}")).size(40))
- .map(Element::from)
- .collect(),
+ .map(Element::from),
);
let toggle = checkbox(