Fix empty for loop, if statements and children (#2275)
* fix empty for loop, if statements and children * fix clippy
This commit is contained in:
1 parent
40b576894f
commit
af524d979b
8 files changed
+27
-29
No files matched your search
@@ -3,7 +3,7 @@
|
||||
use futures_channel::mpsc::UnboundedReceiver;
|
||||
|
||||
use dioxus_core::Template;
|
||||
use web_sys::{console, Element};
|
||||
use web_sys::{Element};
|
||||
|
||||
pub(crate) fn init() -> UnboundedReceiver<Template> {
|
||||
use wasm_bindgen::closure::Closure;
|
||||
@@ -30,8 +30,6 @@ pub(crate) fn init() -> UnboundedReceiver<Template> {
|
||||
|
||||
// change the rsx when new data is received
|
||||
let cl = Closure::wrap(Box::new(move |e: MessageEvent| {
|
||||
console::log_1(&e.clone().into());
|
||||
|
||||
if let Ok(text) = e.data().dyn_into::<js_sys::JsString>() {
|
||||
let string: String = text.into();
|
||||
|
||||
|
||||
Reference in new issue
Block a user