From 694a3f6f8781b2404b0d86fb0095309becf2a297 Mon Sep 17 00:00:00 2001 From: Brian Carlsen Date: Tue, 23 Jul 2024 11:45:32 +0200 Subject: [PATCH] Added Debug to DragDropEvent. --- src/window.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/window.rs b/src/window.rs index 2f09f1b..fa285c0 100644 --- a/src/window.rs +++ b/src/window.rs @@ -95,7 +95,7 @@ struct WindowLabel { label: String, } -#[derive(Deserialize)] +#[derive(Deserialize, Debug)] pub enum DragDropEvent { Dragged(DragDropPayload), DragOver(DragOverPayload), @@ -103,7 +103,7 @@ pub enum DragDropEvent { Cancelled, } -#[derive(Deserialize)] +#[derive(Deserialize, Debug)] pub struct DragDropPayload { paths: Vec, position: dpi::PhysicalPosition, @@ -119,7 +119,7 @@ impl DragDropPayload { } } -#[derive(Deserialize)] +#[derive(Deserialize, Debug)] pub struct DragOverPayload { position: dpi::PhysicalPosition, }