mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-16 00:10:38 +08:00
lib: Add default impl for state ticker
This commit is contained in:
@@ -45,8 +45,6 @@ impl store::State<()> for State {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn tick(&mut self) {}
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
||||
@@ -44,8 +44,6 @@ impl store::State<()> for State {
|
||||
Message::Quit => Some(Exit { value: None }),
|
||||
}
|
||||
}
|
||||
|
||||
fn tick(&mut self) {}
|
||||
}
|
||||
|
||||
#[tokio::main]
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ where
|
||||
fn update(&mut self, message: Self::Message) -> Option<Exit<P>>;
|
||||
|
||||
/// Handle recurring tick.
|
||||
fn tick(&mut self);
|
||||
fn tick(&mut self) {}
|
||||
}
|
||||
|
||||
/// The `Store` updates the applications' state concurrently. It handles
|
||||
|
||||
Reference in New Issue
Block a user