From fd0abe18d0cfde614cc779fa0da71c4e07107b59 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 14 Jul 2024 22:51:52 +0200 Subject: Implement `application::Update` for `()` --- src/application.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/application.rs') 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 { ) -> impl Into>; } +impl Update for () { + fn update( + &self, + _state: &mut State, + _message: Message, + ) -> impl Into> { + () + } +} + impl Update for T where T: Fn(&mut State, Message) -> C, -- cgit