Skip to content

Commit ed43ff3

Browse files
fix(tauri): add missing generics on AppHandle and App (#5642)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 5fe68b1 commit ed43ff3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changes/missing-generics.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fixes definition of `impl HasRawDisplayHandle` for `AppHandle` and `App`.

core/tauri/src/app.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,13 +1653,13 @@ impl<R: Runtime> Builder<R> {
16531653
}
16541654
}
16551655

1656-
unsafe impl HasRawDisplayHandle for AppHandle {
1656+
unsafe impl<R: Runtime> HasRawDisplayHandle for AppHandle<R> {
16571657
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
16581658
self.runtime_handle.raw_display_handle()
16591659
}
16601660
}
16611661

1662-
unsafe impl HasRawDisplayHandle for App {
1662+
unsafe impl<R: Runtime> HasRawDisplayHandle for App<R> {
16631663
fn raw_display_handle(&self) -> raw_window_handle::RawDisplayHandle {
16641664
self.handle.raw_display_handle()
16651665
}

0 commit comments

Comments
 (0)