Use full qualified path to Arc. (#4261)

It is currently only used when `debug_assertions` are enabled.
This commit is contained in:
Florian Bartels authored and GitHub committed 2025-06-09 19:08:28 +01:00
1 parent 693f5c61b9
commit 544d8cc4da
1 file changed
+2 -2
+2 -2
View File
@@ -16,7 +16,7 @@ use crate::{Task, VComponent};
use futures_util::StreamExt;
use slab::Slab;
use std::collections::BTreeSet;
use std::{any::Any, rc::Rc, sync::Arc};
use std::{any::Any, rc::Rc};
use tracing::instrument;
/// A virtual node system that progresses user events and diffs UI trees.
@@ -759,7 +759,7 @@ impl VirtualDom {
#[cfg(debug_assertions)]
fn register_subsecond_handler(&self) {
let sender = self.runtime().sender.clone();
subsecond::register_handler(Arc::new(move || {
subsecond::register_handler(std::sync::Arc::new(move || {
_ = sender.unbounded_send(SchedulerMsg::AllDirty);
}));
}