JonasKruckenberg / tauri-sys

Bindings to the Tauri API for projects using wasm-bindgen
Apache License 2.0
84 stars 21 forks source link

Extra generic? #21

Closed bicarlsen closed 6 months ago

bicarlsen commented 1 year ago

In the tauri_sys::window::WebviewWindow.listen method there are two generics: pub async fn listen<T, H>(&self, event: &str) -> crate::Result<impl Stream<Item = Event<T>>>. It is clear what T is doing, but I am unclear as to what H is used for, as I don't see it referenced anywhere.

JonasKruckenberg commented 1 year ago

Yeah I noticed that a few days ago as well, it's a good ol copy paste issue, that generic does nothing 😁

JonasKruckenberg commented 6 months ago

removed the extra generic now!