diff options
author | 2023-09-20 04:51:08 +0200 | |
---|---|---|
committer | 2023-09-20 04:51:08 +0200 | |
commit | 42ed90bc6f92b2085d193e7f143430b8d3847c21 (patch) | |
tree | 708166baa85036ab80ee96f7379a8767b7691da6 /widget | |
parent | 6c386e90a12fd26da12541da3f086dddb7211c0c (diff) | |
download | iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.gz iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.tar.bz2 iced-42ed90bc6f92b2085d193e7f143430b8d3847c21.zip |
Fix `clippy::default_trait_access`
Diffstat (limited to '')
-rw-r--r-- | widget/src/pick_list.rs | 2 | ||||
-rw-r--r-- | widget/src/scrollable.rs | 2 | ||||
-rw-r--r-- | widget/src/toggler.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/widget/src/pick_list.rs b/widget/src/pick_list.rs index fa0e3471..27f32907 100644 --- a/widget/src/pick_list.rs +++ b/widget/src/pick_list.rs @@ -76,7 +76,7 @@ where text_line_height: text::LineHeight::default(), text_shaping: text::Shaping::Basic, font: None, - handle: Default::default(), + handle: Handle::default(), style: Default::default(), } } diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 6f1e68fc..4cc97684 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -46,7 +46,7 @@ where id: None, width: Length::Shrink, height: Length::Shrink, - direction: Default::default(), + direction: Direction::default(), content: content.into(), on_scroll: None, style: Default::default(), diff --git a/widget/src/toggler.rs b/widget/src/toggler.rs index 2440317f..476c8330 100644 --- a/widget/src/toggler.rs +++ b/widget/src/toggler.rs @@ -286,7 +286,7 @@ where style, label_layout, tree.state.downcast_ref(), - Default::default(), + crate::text::Appearance::default(), ); } |