summaryrefslogtreecommitdiffstats
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
parentdb7d8680ce198439921c8856b2d6d0ccfa4d66ff (diff)
downloadiced-8ed62541af8cd16760b59d8f0a49d619d78f592e.tar.gz
iced-8ed62541af8cd16760b59d8f0a49d619d78f592e.tar.bz2
iced-8ed62541af8cd16760b59d8f0a49d619d78f592e.zip
fix: run `cargo fmt`
-rw-r--r--examples/integration/src/controls.rs4
-rw-r--r--examples/pane_grid/src/main.rs10
-rw-r--r--examples/pokedex/src/main.rs4
-rw-r--r--examples/system_information/src/main.rs12
-rw-r--r--examples/vectorial_text/src/main.rs6
5 files changed, 11 insertions, 25 deletions
diff --git a/examples/integration/src/controls.rs b/examples/integration/src/controls.rs
index 5359d54f..1958b2f3 100644
--- a/examples/integration/src/controls.rs
+++ b/examples/integration/src/controls.rs
@@ -78,9 +78,7 @@ impl Program for Controls {
container(
column![
text("Background color").color(Color::WHITE),
- text!("{background_color:?}")
- .size(14)
- .color(Color::WHITE),
+ text!("{background_color:?}").size(14).color(Color::WHITE),
text_input("Placeholder", &self.input)
.on_input(Message::InputChanged),
sliders,
diff --git a/examples/pane_grid/src/main.rs b/examples/pane_grid/src/main.rs
index d4981024..9e78ad0b 100644
--- a/examples/pane_grid/src/main.rs
+++ b/examples/pane_grid/src/main.rs
@@ -284,12 +284,10 @@ fn view_content<'a>(
.spacing(5)
.max_width(160);
- let content = column![
- text!("{}x{}", size.width, size.height).size(24),
- controls,
- ]
- .spacing(10)
- .align_items(Alignment::Center);
+ let content =
+ column![text!("{}x{}", size.width, size.height).size(24), controls,]
+ .spacing(10)
+ .align_items(Alignment::Center);
container(scrollable(content))
.width(Length::Fill)
diff --git a/examples/pokedex/src/main.rs b/examples/pokedex/src/main.rs
index 61e75116..6ba6fe66 100644
--- a/examples/pokedex/src/main.rs
+++ b/examples/pokedex/src/main.rs
@@ -109,9 +109,7 @@ impl Pokemon {
column![
row![
text(&self.name).size(30).width(Length::Fill),
- text!("#{}", self.number)
- .size(20)
- .color([0.5, 0.5, 0.5]),
+ text!("#{}", self.number).size(20).color([0.5, 0.5, 0.5]),
]
.align_items(Alignment::Center)
.spacing(20),
diff --git a/examples/system_information/src/main.rs b/examples/system_information/src/main.rs
index cd4d9cb3..cae764dc 100644
--- a/examples/system_information/src/main.rs
+++ b/examples/system_information/src/main.rs
@@ -108,15 +108,11 @@ impl Example {
let memory_used = text!("Memory (used): {memory_text}");
- let graphics_adapter = text!(
- "Graphics adapter: {}",
- information.graphics_adapter
- );
+ let graphics_adapter =
+ text!("Graphics adapter: {}", information.graphics_adapter);
- let graphics_backend = text!(
- "Graphics backend: {}",
- information.graphics_backend
- );
+ let graphics_backend =
+ text!("Graphics backend: {}", information.graphics_backend);
column![
system_name.size(30),
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)