mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 21:30:03 -04:00
Update run_forever to hijack thread
This commit is contained in:
@@ -9,7 +9,7 @@ fn main() {
|
||||
|
||||
window.set_title("A fantastic window!");
|
||||
|
||||
events_loop.run_forever(|event| {
|
||||
events_loop.run_forever(move |event, _: &winit::EventLoop| {
|
||||
println!("{:?}", event);
|
||||
|
||||
match event {
|
||||
|
||||
Reference in New Issue
Block a user