remove extra generic

This commit is contained in:
Jonas Kruckenberg 2023-12-14 11:16:36 +01:00
parent bb797b9e0e
commit 5d259531c3
No known key found for this signature in database
GPG key ID: 55B37D49677B1FAC

View file

@ -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<T, H>(&self, event: &str) -> crate::Result<impl Stream<Item = Event<T>>>
pub async fn listen<T>(&self, event: &str) -> crate::Result<impl Stream<Item = Event<T>>>
where
T: DeserializeOwned + 'static,
{