summaryrefslogtreecommitdiffstats
path: root/examples/tooltip
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:42:41 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-07-09 18:43:05 +0200
commit2065a40f642589134142a740ff4198deaa4c378b (patch)
tree00477d6d7cb571332062535557151d5b031d8925 /examples/tooltip
parentd53cc5498b92fb6b573867f5ccb5f8ac93f6be79 (diff)
downloadiced-2065a40f642589134142a740ff4198deaa4c378b.tar.gz
iced-2065a40f642589134142a740ff4198deaa4c378b.tar.bz2
iced-2065a40f642589134142a740ff4198deaa4c378b.zip
Fix `clippy` lints for all crates and features
... and check those in CI as well!
Diffstat (limited to 'examples/tooltip')
-rw-r--r--examples/tooltip/src/main.rs17
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)