From 4407385fbe629eb079b0166649492da5f689ea95 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 8 Jul 2022 23:38:34 +0200 Subject: Make `Element` aliases in `iced` compatible with `iced_native` and `iced_pure` --- src/pure/application.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/pure/application.rs') diff --git a/src/pure/application.rs b/src/pure/application.rs index af9b078b..396854ad 100644 --- a/src/pure/application.rs +++ b/src/pure/application.rs @@ -60,7 +60,9 @@ pub trait Application: Sized { /// Returns the widgets to display in the [`Application`]. /// /// These widgets can produce __messages__ based on user interaction. - fn view(&self) -> pure::Element<'_, Self::Message, Self::Theme>; + fn view( + &self, + ) -> pure::Element<'_, Self::Message, crate::Renderer>; /// Returns the current [`Theme`] of the [`Application`]. fn theme(&self) -> Self::Theme { @@ -167,7 +169,9 @@ where A::subscription(&self.application) } - fn view(&mut self) -> crate::Element<'_, Self::Message, Self::Theme> { + fn view( + &mut self, + ) -> crate::Element<'_, Self::Message, crate::Renderer> { let content = A::view(&self.application); Pure::new(&mut self.state, content).into() -- cgit