Specialize widget::text helper with custom IntoContent trait
This commit is contained in:
parent
c30b4b0a1c
commit
1d83e59e8a
5 changed files with 78 additions and 10 deletions
|
|
@ -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),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue