summaryrefslogtreecommitdiffstats
path: root/src/pure
diff options
context:
space:
mode:
Diffstat (limited to 'src/pure')
-rw-r--r--src/pure/application.rs4
-rw-r--r--src/pure/sandbox.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/pure/application.rs b/src/pure/application.rs
index 973af9f7..395eba9a 100644
--- a/src/pure/application.rs
+++ b/src/pure/application.rs
@@ -66,7 +66,7 @@ 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>;
+ fn view(&self) -> pure::Element<'_, Self::Message>;
/// Returns the current [`Application`] mode.
///
@@ -126,7 +126,7 @@ pub trait Application: Sized {
struct Instance<A: Application> {
application: A,
- state: pure::State<A::Message, crate::Renderer>,
+ state: pure::State,
}
impl<A> crate::Application for Instance<A>
diff --git a/src/pure/sandbox.rs b/src/pure/sandbox.rs
index def90b6b..fbd1d7a8 100644
--- a/src/pure/sandbox.rs
+++ b/src/pure/sandbox.rs
@@ -32,7 +32,7 @@ pub trait Sandbox {
/// Returns the widgets to display in the [`Sandbox`].
///
/// These widgets can produce __messages__ based on user interaction.
- fn view(&self) -> pure::Element<Self::Message>;
+ fn view(&self) -> pure::Element<'_, Self::Message>;
/// Returns the background color of the [`Sandbox`].
///
@@ -101,7 +101,7 @@ where
Subscription::none()
}
- fn view(&self) -> pure::Element<T::Message> {
+ fn view(&self) -> pure::Element<'_, T::Message> {
T::view(self)
}