summaryrefslogtreecommitdiffstats
path: root/examples/websocket/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/websocket/src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/websocket/src/main.rs b/examples/websocket/src/main.rs
index 460d9a08..ef450524 100644
--- a/examples/websocket/src/main.rs
+++ b/examples/websocket/src/main.rs
@@ -97,7 +97,11 @@ impl WebSocket {
} else {
scrollable(
column(
- self.messages.iter().cloned().map(text).map(Element::from),
+ self.messages
+ .iter()
+ .map(ToString::to_string)
+ .map(text)
+ .map(Element::from),
)
.spacing(10),
)