diff --git a/examples/clock.rs b/examples/clock.rs index c76c49faf..a159ef73a 100644 --- a/examples/clock.rs +++ b/examples/clock.rs @@ -3,16 +3,15 @@ //! The example from the README.md. use dioxus::prelude::*; -use futures_util::Future; fn main() { dioxus_desktop::launch(app); } fn app(cx: Scope) -> Element { - let mut count = use_ref(cx, || 0); + let count = use_ref(cx, || 0); - let mut ct = count.to_owned(); + let ct = count.to_owned(); use_coroutine(cx, |_: UnboundedReceiver<()>| async move { loop { tokio::time::sleep(std::time::Duration::from_millis(10)).await; @@ -25,7 +24,7 @@ fn app(cx: Scope) -> Element { } }); - let mut count = count.read(); + let count = count.read(); cx.render(rsx! { div { "High-Five counter: {count}" } diff --git a/packages/core/src/scheduler/task.rs b/packages/core/src/scheduler/task.rs index a905cf993..39c770a06 100644 --- a/packages/core/src/scheduler/task.rs +++ b/packages/core/src/scheduler/task.rs @@ -72,8 +72,6 @@ pub struct LocalTaskHandle { impl ArcWake for LocalTaskHandle { fn wake_by_ref(arc_self: &Arc) { - println!("waking task: {:?} {:p}", arc_self.id, arc_self); - arc_self .tx .unbounded_send(SchedulerMsg::TaskNotified(arc_self.id))