diff --git a/packages/desktop/src/controller.rs b/packages/desktop/src/controller.rs index 2c16e9457..b8b766f93 100644 --- a/packages/desktop/src/controller.rs +++ b/packages/desktop/src/controller.rs @@ -1,7 +1,6 @@ use crate::desktop_context::{DesktopContext, UserWindowEvent}; -use crate::events::IpcMessage; use dioxus_core::*; -use dioxus_html::{Html, HtmlEvent}; +use dioxus_html::HtmlEvent; use futures_channel::mpsc::{unbounded, UnboundedReceiver, UnboundedSender}; use futures_util::StreamExt; #[cfg(target_os = "ios")] diff --git a/packages/desktop/src/events.rs b/packages/desktop/src/events.rs index 2496d6ddb..bcc77ac55 100644 --- a/packages/desktop/src/events.rs +++ b/packages/desktop/src/events.rs @@ -1,10 +1,6 @@ //! Convert a serialized event to an event trigger -use dioxus_html::events::*; use serde::{Deserialize, Serialize}; -use serde_json::from_value; -use std::any::Any; -use std::rc::Rc; #[derive(Deserialize, Serialize, Debug)] pub(crate) struct IpcMessage { diff --git a/packages/html/src/events/drag.rs b/packages/html/src/events/drag.rs index 53c118a77..055b998d3 100644 --- a/packages/html/src/events/drag.rs +++ b/packages/html/src/events/drag.rs @@ -1,5 +1,3 @@ -use std::any::Any; - use dioxus_core::Event; use crate::MouseData; diff --git a/packages/html/src/events/form.rs b/packages/html/src/events/form.rs index 1d995fa09..2382e055e 100644 --- a/packages/html/src/events/form.rs +++ b/packages/html/src/events/form.rs @@ -1,4 +1,4 @@ -use std::{collections::HashMap, fmt::Debug, sync::Arc}; +use std::{collections::HashMap, fmt::Debug}; use dioxus_core::Event; diff --git a/packages/html/src/transit.rs b/packages/html/src/transit.rs index 5e944e0ce..92de515e4 100644 --- a/packages/html/src/transit.rs +++ b/packages/html/src/transit.rs @@ -115,7 +115,7 @@ fn test_back_and_forth() { } "#; - let p: HtmlEvent = serde_json::from_str(o).unwrap(); + let _: HtmlEvent = serde_json::from_str(o).unwrap(); } // pub fn decode_event(value: ) -> Option> {