diff --git a/src/file_handle/native.rs b/src/file_handle/native.rs index 7e0d16a..539d323 100644 --- a/src/file_handle/native.rs +++ b/src/file_handle/native.rs @@ -110,6 +110,7 @@ impl Future for Writer { } /// FileHandle is a way of abstracting over a file returned by a dialog +#[derive(Clone, Debug)] pub struct FileHandle(PathBuf); impl FileHandle { diff --git a/src/file_handle/web.rs b/src/file_handle/web.rs index 2d97509..ebeab25 100644 --- a/src/file_handle/web.rs +++ b/src/file_handle/web.rs @@ -8,6 +8,7 @@ pub(crate) enum WasmFileHandleKind { Writable(FileDialog), } +#[derive(Clone, Debug)] pub struct FileHandle(pub(crate) WasmFileHandleKind); impl FileHandle {