summaryrefslogtreecommitdiffstats
path: root/examples/game_of_life
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/game_of_life
parent6146382676a7bff4764e86e99d0d053f5fbbc045 (diff)
downloadiced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.gz
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.bz2
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.zip
refactor: replace `text(format!(` with `text` macro
Diffstat (limited to 'examples/game_of_life')
-rw-r--r--examples/game_of_life/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs
index 2b0fae0b..48574247 100644
--- a/examples/game_of_life/src/main.rs
+++ b/examples/game_of_life/src/main.rs
@@ -163,7 +163,7 @@ fn view_controls<'a>(
let speed_controls = row![
slider(1.0..=1000.0, speed as f32, Message::SpeedChanged),
- text(format!("x{speed}")).size(16),
+ text!("x{speed}").size(16),
]
.align_items(Alignment::Center)
.spacing(10);