summaryrefslogtreecommitdiffstats
path: root/examples/sierpinski_triangle
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/sierpinski_triangle
parent6146382676a7bff4764e86e99d0d053f5fbbc045 (diff)
downloadiced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.gz
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.tar.bz2
iced-bf9bbf4a3edf22f21c79901999cc104cb29fccce.zip
refactor: replace `text(format!(` with `text` macro
Diffstat (limited to 'examples/sierpinski_triangle')
-rw-r--r--examples/sierpinski_triangle/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sierpinski_triangle/src/main.rs b/examples/sierpinski_triangle/src/main.rs
index 07ae05d6..b805e7d5 100644
--- a/examples/sierpinski_triangle/src/main.rs
+++ b/examples/sierpinski_triangle/src/main.rs
@@ -54,7 +54,7 @@ impl SierpinskiEmulator {
.width(Length::Fill)
.height(Length::Fill),
row![
- text(format!("Iteration: {:?}", self.graph.iteration)),
+ text!("Iteration: {:?}", self.graph.iteration),
slider(0..=10000, self.graph.iteration, Message::IterationSet)
]
.padding(10)