mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Make DeviceId/WindowId::dummy() safe (#3784)
This commit is contained in:
committed by
Kirill Chibisov
parent
71dea4637d
commit
6509f8a18b
@@ -142,7 +142,7 @@ impl ActiveEventLoop {
|
||||
}
|
||||
});
|
||||
|
||||
let device_id = RootDeviceId(unsafe { DeviceId::dummy() });
|
||||
let device_id = RootDeviceId(DeviceId::dummy());
|
||||
|
||||
runner.send_events(
|
||||
iter::once(Event::WindowEvent {
|
||||
@@ -178,7 +178,7 @@ impl ActiveEventLoop {
|
||||
}
|
||||
});
|
||||
|
||||
let device_id = RootDeviceId(unsafe { DeviceId::dummy() });
|
||||
let device_id = RootDeviceId(DeviceId::dummy());
|
||||
|
||||
runner.send_events(
|
||||
iter::once(Event::WindowEvent {
|
||||
|
||||
Reference in New Issue
Block a user