diff --git a/src/window.rs b/src/window.rs index d923da1..56935ba 100644 --- a/src/window.rs +++ b/src/window.rs @@ -14,7 +14,7 @@ use futures::{ Future, FutureExt, Stream, StreamExt, }; use serde::{de::DeserializeOwned, Deserialize, Serialize}; -use std::{any::Any, collections::HashMap}; +use std::{any::Any, collections::HashMap, path::PathBuf}; use wasm_bindgen::{prelude::Closure, JsValue}; /// Events that are emitted right here instead of by the created window. @@ -105,12 +105,12 @@ pub enum DragDropEvent { #[derive(Deserialize, Debug)] pub struct DragDropPayload { - paths: Vec, + paths: Vec, position: dpi::PhysicalPosition, } impl DragDropPayload { - pub fn paths(&self) -> &Vec { + pub fn paths(&self) -> &Vec { &self.paths }