From 9ef4f465a6937f2147c1ca43d9afba306bc506fa Mon Sep 17 00:00:00 2001 From: Evan Almloff Date: Sat, 6 Jan 2024 16:57:54 -0600 Subject: [PATCH] fix formatting --- packages/web/src/lib.rs | 2 +- packages/web/src/mutations.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/web/src/lib.rs b/packages/web/src/lib.rs index 29edcc5b6..eb067878e 100644 --- a/packages/web/src/lib.rs +++ b/packages/web/src/lib.rs @@ -244,7 +244,7 @@ pub async fn run_with_props( loop { tracing::trace!("waiting for work"); - // if virtualdom has nothing, wait for it to have something before requesting idle time + // if virtual dom has nothing, wait for it to have something before requesting idle time // if there is work then this future resolves immediately. let (mut res, template) = { let work = dom.wait_for_work().fuse(); diff --git a/packages/web/src/mutations.rs b/packages/web/src/mutations.rs index 5cbe521d7..777de0e4a 100644 --- a/packages/web/src/mutations.rs +++ b/packages/web/src/mutations.rs @@ -1,4 +1,4 @@ -use wasm_bindgen::JsCast;use crate::dom::UiEvent; +use crate::dom::UiEvent; use crate::dom::WebsysDom; use dioxus_core::prelude::*; use dioxus_core::WriteMutations; @@ -9,6 +9,7 @@ use dioxus_html::PlatformEventData; use dioxus_interpreter_js::get_node; use dioxus_interpreter_js::minimal_bindings; use dioxus_interpreter_js::save_template; +use wasm_bindgen::JsCast; use wasm_bindgen::JsValue; impl WebsysDom {