diff options
author | 2022-07-09 19:03:40 +0200 | |
---|---|---|
committer | 2022-07-09 19:03:40 +0200 | |
commit | 9051dd6977d045f991092e247e6bd9da40d2e793 (patch) | |
tree | cde7d983ffc085ed908be776e9021a8e41b44b44 /examples/tooltip/src/main.rs | |
parent | c4c1221be62f51dd9f1d20ea2c4ea6e2c94e20aa (diff) | |
parent | e548d6c0d5b430b090821e673dc453a24c885fbe (diff) | |
download | iced-9051dd6977d045f991092e247e6bd9da40d2e793.tar.gz iced-9051dd6977d045f991092e247e6bd9da40d2e793.tar.bz2 iced-9051dd6977d045f991092e247e6bd9da40d2e793.zip |
Merge pull request #1379 from PolyMeilex/fix/clippy
Address Clippy lints
Diffstat (limited to 'examples/tooltip/src/main.rs')
-rw-r--r-- | examples/tooltip/src/main.rs | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/examples/tooltip/src/main.rs b/examples/tooltip/src/main.rs index 1bd1133c..7c800112 100644 --- a/examples/tooltip/src/main.rs +++ b/examples/tooltip/src/main.rs @@ -54,16 +54,11 @@ impl Sandbox for Example { tooltip::Position::Right, ); - let fixed_tooltips = Row::with_children(vec![ - top.into(), - bottom.into(), - left.into(), - right.into(), - ]) - .width(Length::Fill) - .height(Length::Fill) - .align_items(Alignment::Center) - .spacing(50); + let fixed_tooltips = Row::with_children(vec![top, bottom, left, right]) + .width(Length::Fill) + .height(Length::Fill) + .align_items(Alignment::Center) + .spacing(50); let follow_cursor = tooltip( "Tooltip follows cursor", @@ -78,7 +73,7 @@ impl Sandbox for Example { .center_x() .center_y() .into(), - follow_cursor.into(), + follow_cursor, ]) .width(Length::Fill) .height(Length::Fill) |