fix: add type for dropdown
This commit is contained in:
parent
fdf5ac1a61
commit
4c4abd939e
1 changed files with 2 additions and 1 deletions
|
|
@ -42,7 +42,8 @@ pub fn popup_dropdown<
|
||||||
_on_surface_action: impl Fn(surface::Action) -> Message + Send + Sync + 'static,
|
_on_surface_action: impl Fn(surface::Action) -> Message + Send + Sync + 'static,
|
||||||
_map_action: impl Fn(Message) -> AppMessage + Send + Sync + 'static,
|
_map_action: impl Fn(Message) -> AppMessage + Send + Sync + 'static,
|
||||||
) -> Dropdown<'a, S, Message, AppMessage> {
|
) -> Dropdown<'a, S, Message, AppMessage> {
|
||||||
let dropdown = Dropdown::new(selections, selected, on_selected);
|
let dropdown: Dropdown<'_, S, Message, AppMessage> =
|
||||||
|
Dropdown::new(selections, selected, on_selected);
|
||||||
|
|
||||||
#[cfg(all(feature = "winit", feature = "wayland"))]
|
#[cfg(all(feature = "winit", feature = "wayland"))]
|
||||||
let dropdown = dropdown.with_popup(_parent_id, _on_surface_action, _map_action);
|
let dropdown = dropdown.with_popup(_parent_id, _on_surface_action, _map_action);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue