server_future uses use_resource

This commit is contained in:
Jonathan Kelley committed 2024-02-02 14:08:21 -08:00
1 parent 0fd7799bc2
commit f44b72f5e1
4 files changed
+64 -99

No files matched your search

+2 -2
View File
@@ -454,7 +454,7 @@ impl VirtualDom {
match self.rx.next().await.expect("channel should never close") {
SchedulerMsg::Immediate(id) => self.mark_dirty(id),
SchedulerMsg::TaskNotified(id) => self.runtime.handle_task_wakeup(id),
SchedulerMsg::TaskNotified(id) => _ = self.runtime.handle_task_wakeup(id),
};
}
}
@@ -467,7 +467,7 @@ impl VirtualDom {
while let Ok(Some(msg)) = self.rx.try_next() {
match msg {
SchedulerMsg::Immediate(id) => self.mark_dirty(id),
SchedulerMsg::TaskNotified(task) => self.runtime.handle_task_wakeup(task),
SchedulerMsg::TaskNotified(task) => _ = self.runtime.handle_task_wakeup(task),
}
}
}