diff options
| author | 2023-01-28 18:34:14 +0100 | |
|---|---|---|
| committer | 2023-01-28 18:34:14 +0100 | |
| commit | cffffff2ddffc6e8d4e430c94ba9d89e4acda44c (patch) | |
| tree | 2057c57df0c36096d1c3cd6334bc16e767f8169e /examples/tour/src | |
| parent | 818ae4977a36c30a61492f85afa96e261c5d7167 (diff) | |
| parent | 42b1bfe66d2407901c1ae640f80ce9e0d3c64b60 (diff) | |
| download | iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.gz iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.tar.bz2 iced-cffffff2ddffc6e8d4e430c94ba9d89e4acda44c.zip  | |
Merge pull request #1681 from pop-os/fix-lints
Fix Clippy Lints
Diffstat (limited to 'examples/tour/src')
| -rw-r--r-- | examples/tour/src/main.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs index 378508e1..5ee65562 100644 --- a/examples/tour/src/main.rs +++ b/examples/tour/src/main.rs @@ -388,7 +388,7 @@ impl<'a> Step {          let spacing_section = column![              slider(0..=80, spacing, StepMessage::SpacingChanged), -            text(format!("{} px", spacing)) +            text(format!("{spacing} px"))                  .width(Length::Fill)                  .horizontal_alignment(alignment::Horizontal::Center),          ] @@ -412,7 +412,7 @@ impl<'a> Step {      fn text(size: u16, color: Color) -> Column<'a, StepMessage> {          let size_section = column![              "You can change its size:", -            text(format!("This text is {} pixels", size)).size(size), +            text(format!("This text is {size} pixels")).size(size),              slider(10..=70, size, StepMessage::TextSizeChanged),          ]          .padding(20) @@ -427,7 +427,7 @@ impl<'a> Step {          let color_section = column![              "And its color:", -            text(format!("{:?}", color)).style(color), +            text(format!("{color:?}")).style(color),              color_sliders,          ]          .padding(20) @@ -497,7 +497,7 @@ impl<'a> Step {              .push(ferris(width))              .push(slider(100..=500, width, StepMessage::ImageWidthChanged))              .push( -                text(format!("Width: {} px", width)) +                text(format!("Width: {width} px"))                      .width(Length::Fill)                      .horizontal_alignment(alignment::Horizontal::Center),              )  | 
