summaryrefslogtreecommitdiffstats
path: root/examples/vectorial_text
diff options
context:
space:
mode:
authorLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 18:24:57 -0300
committerLibravatar Richard Custodio <richardcustodio@pm.me>2024-03-18 18:24:57 -0300
commit8ed62541af8cd16760b59d8f0a49d619d78f592e (patch)
tree83736da592bb41b487ef21ff13c10470ac22656c /examples/vectorial_text
parentdb7d8680ce198439921c8856b2d6d0ccfa4d66ff (diff)
downloadiced-8ed62541af8cd16760b59d8f0a49d619d78f592e.tar.gz
iced-8ed62541af8cd16760b59d8f0a49d619d78f592e.tar.bz2
iced-8ed62541af8cd16760b59d8f0a49d619d78f592e.zip
fix: run `cargo fmt`
Diffstat (limited to 'examples/vectorial_text')
-rw-r--r--examples/vectorial_text/src/main.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/vectorial_text/src/main.rs b/examples/vectorial_text/src/main.rs
index 91740a37..1ed7a2b1 100644
--- a/examples/vectorial_text/src/main.rs
+++ b/examples/vectorial_text/src/main.rs
@@ -52,11 +52,7 @@ impl VectorialText {
fn view(&self) -> Element<Message> {
let slider_with_label = |label, range, value, message: fn(f32) -> _| {
column![
- row![
- text(label),
- horizontal_space(),
- text!("{:.2}", value)
- ],
+ row![text(label), horizontal_space(), text!("{:.2}", value)],
slider(range, value, message).step(0.01)
]
.spacing(2)