summaryrefslogtreecommitdiffstats
path: root/src/pure/application.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pure/application.rs')
-rw-r--r--src/pure/application.rs8
1 files changed, 6 insertions, 2 deletions
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<Self::Theme>>;
/// 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<Self::Theme>> {
let content = A::view(&self.application);
Pure::new(&mut self.state, content).into()