From 5d259531c3727de454e60afd9e209e017dc4ae9f Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Thu, 14 Dec 2023 11:16:36 +0100 Subject: [PATCH] remove extra generic --- src/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.rs b/src/window.rs index 4cdf86c..2eecbba 100644 --- a/src/window.rs +++ b/src/window.rs @@ -794,7 +794,7 @@ impl WebviewWindow { /// The returned Future will automatically clean up it's underlying event listener when dropped, so no manual unlisten function needs to be called. /// See [Differences to the JavaScript API](../index.html#differences-to-the-javascript-api) for details. #[inline(always)] - pub async fn listen(&self, event: &str) -> crate::Result>> + pub async fn listen(&self, event: &str) -> crate::Result>> where T: DeserializeOwned + 'static, {