diff --git a/Cargo.toml b/Cargo.toml index df558e69e..25beb4d33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -133,7 +133,6 @@ serde_json = "1.0.79" rand = { version = "0.8.4", features = ["small_rng"] } tokio = { version = "1.16.1", features = ["full"] } reqwest = { version = "0.11.9", features = ["json"] } -fern = { version = "0.6.0", features = ["colored"] } env_logger = "0.10.0" simple_logger = "4.0.0" thiserror = { workspace = true } diff --git a/examples/file_upload.rs b/examples/file_upload.rs index 2af49f848..b78a5b343 100644 --- a/examples/file_upload.rs +++ b/examples/file_upload.rs @@ -1,4 +1,5 @@ #![allow(non_snake_case)] +use dioxus::html::HasFileData; use dioxus::prelude::*; use tokio::time::sleep; @@ -48,7 +49,7 @@ fn App(cx: Scope) -> Element { ondrop: move |evt| { to_owned![files_uploaded]; async move { - if let Some(file_engine) = &evt.files { + if let Some(file_engine) = &evt.files() { let files = file_engine.files(); for file_name in &files { if let Some(file) = file_engine.read_file_to_string(file_name).await{ diff --git a/packages/html/src/events/drag.rs b/packages/html/src/events/drag.rs index d8770872d..bbedf9a2b 100644 --- a/packages/html/src/events/drag.rs +++ b/packages/html/src/events/drag.rs @@ -8,8 +8,6 @@ use keyboard_types::Modifiers; use crate::HasMouseData; -use std::fmt::Debug; - pub type DragEvent = Event; /// The DragEvent interface is a DOM event that represents a drag and drop interaction. The user initiates a drag by