summaryrefslogtreecommitdiffstats
path: root/examples/custom_quad/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/custom_quad/src/main.rs')
-rw-r--r--examples/custom_quad/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/custom_quad/src/main.rs b/examples/custom_quad/src/main.rs
index b3eee218..b53a40d6 100644
--- a/examples/custom_quad/src/main.rs
+++ b/examples/custom_quad/src/main.rs
@@ -165,7 +165,7 @@ impl Example {
self.border_width,
self.shadow
),
- text(format!("Radius: {tl:.2}/{tr:.2}/{br:.2}/{bl:.2}")),
+ text!("Radius: {tl:.2}/{tr:.2}/{br:.2}/{bl:.2}"),
slider(1.0..=100.0, tl, Message::RadiusTopLeftChanged).step(0.01),
slider(1.0..=100.0, tr, Message::RadiusTopRightChanged).step(0.01),
slider(1.0..=100.0, br, Message::RadiusBottomRightChanged)
@@ -174,7 +174,7 @@ impl Example {
.step(0.01),
slider(1.0..=10.0, self.border_width, Message::BorderWidthChanged)
.step(0.01),
- text(format!("Shadow: {sx:.2}x{sy:.2}, {sr:.2}")),
+ text!("Shadow: {sx:.2}x{sy:.2}, {sr:.2}"),
slider(-100.0..=100.0, sx, Message::ShadowXOffsetChanged)
.step(0.01),
slider(-100.0..=100.0, sy, Message::ShadowYOffsetChanged)