summaryrefslogtreecommitdiffstats
path: root/examples/websocket/src/main.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2024-04-02 09:42:50 +0200
committerLibravatar GitHub <noreply@github.com>2024-04-02 09:42:50 +0200
commit6c75836f123eba909154ce517299c3ffcd21b25b (patch)
tree46d3f1b92efcc3b815662c23aed292dae722366d /examples/websocket/src/main.rs
parentc30b4b0a1c9b191bcb65ae1732581b5c96b8bcfe (diff)
parent488cac714896002791f3c7b9a99181310c1d1b5c (diff)
downloadiced-6c75836f123eba909154ce517299c3ffcd21b25b.tar.gz
iced-6c75836f123eba909154ce517299c3ffcd21b25b.tar.bz2
iced-6c75836f123eba909154ce517299c3ffcd21b25b.zip
Merge pull request #2363 from iced-rs/specialize-text-helper
Specialize `widget::text` helper
Diffstat (limited to 'examples/websocket/src/main.rs')
-rw-r--r--examples/websocket/src/main.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index 460d9a08..b479fe89 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -96,10 +96,8 @@ impl WebSocket {
.into()
} else {
scrollable(
- column(
- self.messages.iter().cloned().map(text).map(Element::from),
- )
- .spacing(10),
+ column(self.messages.iter().map(text).map(Element::from))
+ .spacing(10),
)
.id(MESSAGE_LOG.clone())
.height(Length::Fill)