Explorar o código

fix formatting

Evan Almloff hai 1 ano
pai
achega
9ef4f465a6
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  1. 1 1
      packages/web/src/lib.rs
  2. 2 1
      packages/web/src/mutations.rs

+ 1 - 1
packages/web/src/lib.rs

@@ -244,7 +244,7 @@ pub async fn run_with_props<T: Clone + 'static>(
     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();

+ 2 - 1
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 {