mirror of
https://github.com/storytold/winit.git
synced 2026-11-28 01:13:21 +01:00
example: Fix tracing registration in pump_events
Tracing subscribers must be set up before `EventLoop::new()`.
This commit is contained in:
1 parent
807e8c4a84
commit
0e220e2ab2
1 file changed
+2
-2
@@ -51,10 +51,10 @@ fn main() -> std::process::ExitCode {
|
||||
}
|
||||
}
|
||||
|
||||
let mut event_loop = EventLoop::new().unwrap();
|
||||
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
let mut event_loop = EventLoop::new().unwrap();
|
||||
|
||||
let mut app = PumpDemo::default();
|
||||
|
||||
loop {
|
||||
|
||||
Reference in new issue
Block a user