summaryrefslogtreecommitdiffstats
path: root/examples/screenshot/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/screenshot/src/main.rs')
-rw-r--r--examples/screenshot/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/screenshot/src/main.rs b/examples/screenshot/src/main.rs
index bd670322..fb19e556 100644
--- a/examples/screenshot/src/main.rs
+++ b/examples/screenshot/src/main.rs
@@ -160,7 +160,7 @@ impl Example {
.push_maybe(
self.crop_error
.as_ref()
- .map(|error| text(format!("Crop error! \n{error}"))),
+ .map(|error| text!("Crop error! \n{error}")),
)
.spacing(10)
.align_items(Alignment::Center);