Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example code error. the trait bound Window: raw_window_handle::borrowed::HasWindowHandle is not satisfied #131

Closed
HuakunShen opened this issue Apr 11, 2024 · 0 comments · Fixed by #132

Comments

@HuakunShen
Copy link

When running the example app on Mac, got the following error preventing app from running

error[E0277]: the trait bound `Window: raw_window_handle::borrowed::HasWindowHandle` is not satisfied
   --> src/main.rs:19:23
    |
19  |       apply_vibrancy(&window, NSVisualEffectMaterial::HudWindow, None, None)
    |       --------------  ^^^^^^ the trait `raw_window_handle::borrowed::HasWindowHandle` is not implemented for `Window`, which is required by `&Window: raw_window_handle::borrowed::HasWindowHandle`
    |       |
    |       required by a bound introduced by this call
    |
    = help: the following other types implement trait `raw_window_handle::borrowed::HasWindowHandle`:
              raw_window_handle::borrowed::WindowHandle<'_>
              &H
              &mut H
    = note: required for `&Window` to implement `raw_window_handle::borrowed::HasWindowHandle`
amrbashir added a commit that referenced this issue Apr 15, 2024
amrbashir added a commit that referenced this issue Apr 15, 2024
* chore: update tauri example to v2

closes #131

* Update test.yml

* Update test.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant