summaryrefslogtreecommitdiffstats
path: root/examples/events
diff options
context:
space:
mode:
authorLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 17:08:56 -0300
committerLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 17:08:56 -0300
commitbf9bbf4a3edf22f21c79901999cc104cb29fccce (patch)
tree2a2b041471940c0fc1809e3db677a0a53758181c /examples/events
parent6146382676a7bff4764e86e99d0d053f5fbbc045 (diff)
downloadiced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.gz
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.bz2
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.zip
refactor: replace `text(format!(` with `text` macro
Diffstat (limited to 'examples/events')
-rw-r--r--examples/events/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/events/src/main.rs b/examples/events/src/main.rs
index bf568c94..4734e20c 100644
--- a/examples/events/src/main.rs
+++ b/examples/events/src/main.rs
@@ -61,7 +61,7 @@ impl Events {
let events = Column::with_children(
self.last
.iter()
- .map(|event| text(format!("{event:?}")).size(40))
+ .map(|event| text!("{event:?}").size(40))
.map(Element::from),
);