From eae62c1e5c87d2c50c2a6ebc8bfdfcd4c16ce21c Mon Sep 17 00:00:00 2001 From: Brian Carlsen Date: Tue, 23 Jul 2024 11:53:33 +0200 Subject: [PATCH] Removed mut requirement for window.on_drag_drop_event. --- src/window.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/window.rs b/src/window.rs index fa285c0..f149fea 100644 --- a/src/window.rs +++ b/src/window.rs @@ -324,14 +324,11 @@ impl Window { /// The listener is triggered when the user hovers the selected files on the webview, /// drops the files or cancels the operation. /// - /// You need to call unlisten if your handler goes out of scope e.g. the component is unmounted - /// unlisten(); - /// /// # Returns /// Function to unlisten to the event. /// Note that removing the listener is required if your listener goes out of scope e.g. the component is unmounted. pub async fn on_drag_drop_event( - &mut self, + &self, ) -> crate::Result>> { let (tx, rx) = mpsc::unbounded::>();