refactor: use Task::stream instead of a channel subscription

This commit is contained in:
Michael Aaron Murphy 2025-02-28 16:55:48 +01:00
parent 855ba59cab
commit dda70e1441
No known key found for this signature in database
GPG key ID: B2732D4240C9212C
30 changed files with 284 additions and 385 deletions

View file

@ -65,7 +65,7 @@ pub trait Page<Message: 'static>: Downcast {
/// Reload page metadata via a Task.
#[allow(unused)]
fn on_enter(&mut self, sender: tokio::sync::mpsc::Sender<Message>) -> Task<Message> {
fn on_enter(&mut self) -> Task<Message> {
Task::none()
}