chore: make clippy happy in workspace crate

This commit is contained in:
Jonathan Kelley committed 2022-12-19 11:56:44 -08:00
1 parent 22f58ef1d8
commit 8d7d07db56
8 files changed
+62 -60

No files matched your search

-2
View File
@@ -339,8 +339,6 @@ fn read_input_to_data(target: Element) -> Rc<FormData> {
}
fn walk_event_for_id(event: &web_sys::Event) -> Option<(ElementId, web_sys::Element)> {
use wasm_bindgen::JsCast;
let mut target = event
.target()
.expect("missing target")
+6 -6
View File
@@ -54,19 +54,21 @@
// - Do DOM work in the next requestAnimationFrame callback
pub use crate::cfg::Config;
use crate::dom::virtual_event_from_websys_event;
pub use crate::util::{use_eval, EvalResult};
use dioxus_core::{Element, ElementId, Scope, VirtualDom};
use dioxus_core::{Element, Scope, VirtualDom};
use futures_util::{pin_mut, FutureExt, StreamExt};
mod cache;
mod cfg;
mod dom;
mod hot_reload;
// mod rehydrate;
mod ric_raf;
mod util;
// Currently disabled since it actually slows down immediate rendering
// todo: only schedule non-immediate renders through ric/raf
// mod ric_raf;
// mod rehydrate;
/// Launch the VirtualDOM given a root component and a configuration.
///
/// This function expects the root component to not have root props. To launch the root component with root props, use
@@ -195,8 +197,6 @@ pub async fn run_with_props<T: 'static>(root: fn(Scope<T>) -> Element, root_prop
// the mutations come back with nothing - we need to actually mount them
websys_dom.mount();
let _work_loop = ric_raf::RafLoop::new();
loop {
log::debug!("waiting for work");