diff options
Diffstat (limited to 'src/application.rs')
-rw-r--r-- | src/application.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/application.rs b/src/application.rs index f5e06471..71cb6a7f 100644 --- a/src/application.rs +++ b/src/application.rs @@ -417,6 +417,16 @@ pub trait Update<State, Message> { ) -> impl Into<Task<Message>>; } +impl<State, Message> Update<State, Message> for () { + fn update( + &self, + _state: &mut State, + _message: Message, + ) -> impl Into<Task<Message>> { + () + } +} + impl<T, State, Message, C> Update<State, Message> for T where T: Fn(&mut State, Message) -> C, |