fix some lints

This commit is contained in:
= 2022-12-16 10:19:26 -06:00
parent 894e3bf6b5
commit b6ade84ea6
5 changed files with 3 additions and 10 deletions

View file

@ -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")]

View file

@ -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 {

View file

@ -1,5 +1,3 @@
use std::any::Any;
use dioxus_core::Event;
use crate::MouseData;

View file

@ -1,4 +1,4 @@
use std::{collections::HashMap, fmt::Debug, sync::Arc};
use std::{collections::HashMap, fmt::Debug};
use dioxus_core::Event;

View file

@ -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<Rc<dyn Any>> {