Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Feb 17, 2024
1 parent b6c8813 commit 64cef86
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/drop_down/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
use std::fmt::Display;

use iced::{
widget::{Button, Column, Row, Text}, Element, Length, Sandbox, Settings
widget::{Button, Column, Row, Text},
Element, Length, Sandbox, Settings,
};

use iced_aw::{drop_down, DropDown};
Expand Down Expand Up @@ -55,7 +56,7 @@ impl Sandbox for DropDownExample {
Message::Select(choice) => {
self.selected = choice;
self.expanded = false;
},
}
Message::Dismiss => self.expanded = false,
Message::Expand => self.expanded = !self.expanded,
}
Expand All @@ -78,7 +79,6 @@ impl Sandbox for DropDownExample {
.on_dismiss(Message::Dismiss)
.alignment(drop_down::Alignment::Bottom);


Column::new()
.padding(20)
.width(Length::Fill)
Expand Down
2 changes: 1 addition & 1 deletion src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ pub mod time;
pub mod offset;

#[cfg(feature = "drop_down")]
pub mod alignment;
pub mod alignment;
4 changes: 1 addition & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,7 @@ mod platform {

#[doc(no_inline)]
#[cfg(feature = "drop_down")]
pub use {
crate::native::drop_down, drop_down::DropDown,
};
pub use {crate::native::drop_down, drop_down::DropDown};
}

#[doc(no_inline)]
Expand Down
1 change: 0 additions & 1 deletion src/native/drop_down.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ where
}
}


impl<'a, Message, Theme, Renderer> Widget<Message, Theme, Renderer>
for DropDown<'a, Message, Theme, Renderer>
where
Expand Down
2 changes: 1 addition & 1 deletion src/native/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ pub mod drop_down;
#[cfg(feature = "drop_down")]
/// A drop down menu
pub type DropDown<'a, Overlay, Message, Renderer> =
drop_down::DropDown<'a, Overlay, Message, Renderer>;
drop_down::DropDown<'a, Overlay, Message, Renderer>;

0 comments on commit 64cef86

Please sign in to comment.