Skip to content

Commit

Permalink
remove extra generic
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKruckenberg committed Dec 14, 2023
1 parent bb797b9 commit 5d25953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
{
Expand Down

0 comments on commit 5d25953

Please sign in to comment.