fix more lints

This commit is contained in:
Evan Almloff committed 2022-12-07 17:24:50 -06:00
1 parent cbaf36251f
commit 56b027ef33
2 files changed
+7 -14

No files matched your search

+1 -8
View File
@@ -16,14 +16,7 @@ use crate::{
use futures_util::{pin_mut, StreamExt}; use futures_util::{pin_mut, StreamExt};
use fxhash::FxHashMap; use fxhash::FxHashMap;
use slab::Slab; use slab::Slab;
use std::{ use std::{any::Any, borrow::BorrowMut, cell::Cell, collections::BTreeSet, future::Future, rc::Rc};
any::Any,
borrow::BorrowMut,
cell::Cell,
collections::{BTreeSet},
future::Future,
rc::Rc,
};
/// A virtual node system that progresses user events and diffs UI trees. /// A virtual node system that progresses user events and diffs UI trees.
/// ///
+6 -6
View File
@@ -53,15 +53,15 @@
// - Do the VDOM work during the idlecallback // - Do the VDOM work during the idlecallback
// - Do DOM work in the next requestAnimationFrame callback // - Do DOM work in the next requestAnimationFrame callback
use std::time::Duration;
pub use crate::cfg::Config; pub use crate::cfg::Config;
use crate::dom::virtual_event_from_websys_event; use crate::dom::virtual_event_from_websys_event;
pub use crate::util::use_eval; pub use crate::util::use_eval;
use dioxus_core::{Element, ElementId, Scope, VirtualDom}; use dioxus_core::{Element, ElementId, Scope, VirtualDom};
use futures_channel::mpsc::unbounded;
use futures_util::{pin_mut, FutureExt, StreamExt}; use futures_util::{pin_mut, FutureExt, StreamExt};
use gloo_timers::future::sleep;
mod cache; mod cache;
mod cfg; mod cfg;
@@ -181,7 +181,7 @@ pub async fn run_with_props<T: 'static>(root: fn(Scope<T>) -> Element, root_prop
wasm_bindgen::intern(s); wasm_bindgen::intern(s);
} }
let should_hydrate = cfg.hydrate; let _should_hydrate = cfg.hydrate;
let (tx, mut rx) = futures_channel::mpsc::unbounded(); let (tx, mut rx) = futures_channel::mpsc::unbounded();
@@ -201,7 +201,7 @@ 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 // the mutations come back with nothing - we need to actually mount them
websys_dom.mount(); websys_dom.mount();
let mut work_loop = ric_raf::RafLoop::new(); let _work_loop = ric_raf::RafLoop::new();
loop { loop {
log::debug!("waiting for work"); log::debug!("waiting for work");
@@ -214,7 +214,7 @@ pub async fn run_with_props<T: 'static>(root: fn(Scope<T>) -> Element, root_prop
futures_util::select! { futures_util::select! {
_ = work => None, _ = work => None,
new_template = hotreload_rx.next() => { _new_template = hotreload_rx.next() => {
todo!("Implement hot reload"); todo!("Implement hot reload");
None None
} }