example: Fix tracing registration in pump_events

Tracing subscribers must be set up before `EventLoop::new()`.
This commit is contained in:
Mads Marquart authored and Kirill Chibisov committed 2026-09-05 03:18:46 +09:00
1 parent 807e8c4a84
commit 0e220e2ab2
1 file changed
+2 -2
+2 -2
View File
@@ -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 {