Skip to content

Commit 6d2c796

Browse files
bash486c
authored andcommitted
Fix missing winit feature in egui_glow (emilk#4916)
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
1 parent 9336e68 commit 6d2c796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/egui_glow/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ document-features = { workspace = true, optional = true }
6969
# Native:
7070
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
7171
puffin = { workspace = true, optional = true }
72-
winit = { workspace = true, optional = true, default-features = false }
72+
winit = { workspace = true, optional = true, default-features = false, features = ["rwh_06"] }
7373

7474
# Web:
7575
[target.'cfg(target_arch = "wasm32")'.dependencies]

0 commit comments

Comments
 (0)