Skip to content

Fix missing winit feature in egui_glow#4916

Merged
emilk merged 1 commit intoemilk:masterfrom
tautropfli:fix-glow-winit
Aug 5, 2024
Merged

Fix missing winit feature in egui_glow#4916
emilk merged 1 commit intoemilk:masterfrom
tautropfli:fix-glow-winit

Conversation

@tautropfli
Copy link
Contributor

Since #4849, running ./scripts/check.sh fails with:

...

error[E0277]: the trait bound `ActiveEventLoop: raw_window_handle::borrowed::HasDisplayHandle` is not satisfied
  --> crates/egui_glow/src/winit.rs:43:13
   |
43 |             event_loop,
   |             ^^^^^^^^^^ the trait `raw_window_handle::borrowed::HasDisplayHandle` is not implemented for `ActiveEventLoop`
   |
   = help: the following other types implement trait `raw_window_handle::borrowed::HasDisplayHandle`:
             raw_window_handle::borrowed::DisplayHandle<'a>
             &H
             &mut H
   = note: required for the cast from `&ActiveEventLoop` to `&dyn raw_window_handle::borrowed::HasDisplayHandle`

This PR adds the missing rwh_06 to the winit dependency (in egui-glow).

  • I have followed the instructions in the PR template

@emilk emilk added the egui_glow Relates to running egui_glow on native label Aug 5, 2024
@emilk emilk changed the title Fix glow <-> winit integration Fix missing winit feature in egui_glow Aug 5, 2024
@emilk emilk merged commit 71dbc48 into emilk:master Aug 5, 2024
@tautropfli tautropfli deleted the fix-glow-winit branch August 5, 2024 09:39
486c pushed a commit to 486c/egui that referenced this pull request Oct 9, 2024
Since emilk#4849, running `./scripts/check.sh` fails with:
```
...

error[E0277]: the trait bound `ActiveEventLoop: raw_window_handle::borrowed::HasDisplayHandle` is not satisfied
  --> crates/egui_glow/src/winit.rs:43:13
   |
43 |             event_loop,
   |             ^^^^^^^^^^ the trait `raw_window_handle::borrowed::HasDisplayHandle` is not implemented for `ActiveEventLoop`
   |
   = help: the following other types implement trait `raw_window_handle::borrowed::HasDisplayHandle`:
             raw_window_handle::borrowed::DisplayHandle<'a>
             &H
             &mut H
   = note: required for the cast from `&ActiveEventLoop` to `&dyn raw_window_handle::borrowed::HasDisplayHandle`
```

This PR adds the missing `rwh_06` to the winit dependency (in
egui-glow).

* [x] I have followed the instructions in the PR template
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
Since emilk#4849, running `./scripts/check.sh` fails with:
```
...

error[E0277]: the trait bound `ActiveEventLoop: raw_window_handle::borrowed::HasDisplayHandle` is not satisfied
  --> crates/egui_glow/src/winit.rs:43:13
   |
43 |             event_loop,
   |             ^^^^^^^^^^ the trait `raw_window_handle::borrowed::HasDisplayHandle` is not implemented for `ActiveEventLoop`
   |
   = help: the following other types implement trait `raw_window_handle::borrowed::HasDisplayHandle`:
             raw_window_handle::borrowed::DisplayHandle<'a>
             &H
             &mut H
   = note: required for the cast from `&ActiveEventLoop` to `&dyn raw_window_handle::borrowed::HasDisplayHandle`
```

This PR adds the missing `rwh_06` to the winit dependency (in
egui-glow).

* [x] I have followed the instructions in the PR template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

egui_glow Relates to running egui_glow on native

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants