fix: add type for dropdown

This commit is contained in:
Ashley Wulber 2025-03-11 18:22:01 -04:00
parent fdf5ac1a61
commit 4c4abd939e
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820

View file

@ -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);