From d2eac1c29ff1ce5758d655eac401888d97b7e882 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Fri, 7 Jun 2024 10:04:12 +0200 Subject: [PATCH] lib: Add default impl for state ticker --- examples/basic.rs | 2 -- examples/hello.rs | 2 -- src/store.rs | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/examples/basic.rs b/examples/basic.rs index bbbbdc52..e6f1d7b6 100644 --- a/examples/basic.rs +++ b/examples/basic.rs @@ -45,8 +45,6 @@ impl store::State<()> for State { } } } - - fn tick(&mut self) {} } #[tokio::main] diff --git a/examples/hello.rs b/examples/hello.rs index dcd99e49..2f5741cc 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -44,8 +44,6 @@ impl store::State<()> for State { Message::Quit => Some(Exit { value: None }), } } - - fn tick(&mut self) {} } #[tokio::main] diff --git a/src/store.rs b/src/store.rs index f8c9cfaa..60a12eb9 100644 --- a/src/store.rs +++ b/src/store.rs @@ -24,7 +24,7 @@ where fn update(&mut self, message: Self::Message) -> Option>; /// Handle recurring tick. - fn tick(&mut self); + fn tick(&mut self) {} } /// The `Store` updates the applications' state concurrently. It handles