Make Element aliases in iced compatible with iced_native and iced_pure

This commit is contained in:
Héctor Ramón Jiménez 2022-07-08 23:38:34 +02:00
parent 48bc505cb6
commit 4407385fbe
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
4 changed files with 15 additions and 9 deletions

View file

@ -108,5 +108,5 @@ pub use iced_pure::Widget;
pub use iced_pure::{Pure, State};
/// A generic, pure [`Widget`].
pub type Element<'a, Message, Theme = crate::Theme> =
iced_pure::Element<'a, Message, crate::Renderer<Theme>>;
pub type Element<'a, Message, Renderer = crate::Renderer<crate::Theme>> =
iced_pure::Element<'a, Message, Renderer>;