diff --git a/crates/bevy_render/src/view/window/mod.rs b/crates/bevy_render/src/view/window/mod.rs index f1349d36e6..913c1dc964 100644 --- a/crates/bevy_render/src/view/window/mod.rs +++ b/crates/bevy_render/src/view/window/mod.rs @@ -225,7 +225,7 @@ fn safely_configure_surface( ) { if is_wsl { // Use a closure to avoid polluting the backtrace with catch_unwind machinery - let result = std::panic::catch_unwind(std::panic::AssertUnwindSafe(|| { + let result = core::panic::catch_unwind(core::panic::AssertUnwindSafe(|| { render_device.configure_surface(surface, config); }));