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, {