Skip to content

Commit

Permalink
fix(tauri): add missing generics on AppHandle and App (#5642)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
  • Loading branch information
oscartbeaumont and lucasfernog committed Nov 17, 2022
1 parent 5fe68b1 commit ed43ff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changes/missing-generics.md
@@ -0,0 +1,5 @@
---
"tauri": patch
---

Fixes definition of `impl HasRawDisplayHandle` for `AppHandle` and `App`.
4 changes: 2 additions & 2 deletions core/tauri/src/app.rs
Expand Up @@ -1653,13 +1653,13 @@ impl<R: Runtime> Builder<R> {
}
}

unsafe impl HasRawDisplayHandle for AppHandle {
unsafe impl<R: Runtime> HasRawDisplayHandle for AppHandle<R> {
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
self.runtime_handle.raw_display_handle()
}
}

unsafe impl HasRawDisplayHandle for App {
unsafe impl<R: Runtime> HasRawDisplayHandle for App<R> {
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
self.handle.raw_display_handle()
}
Expand Down

0 comments on commit ed43ff3

Please sign in to comment.