From 40f48cbeb4fc310fccc25dab4f30bca236ef4eb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20R=C3=B8yset?= Date: Fri, 25 Feb 2022 12:27:52 +0100 Subject: [PATCH] Fix unsafe_op_in_unsafe_fn warning on nightly (#2207) --- src/platform_impl/windows/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform_impl/windows/window.rs b/src/platform_impl/windows/window.rs index 6703d6e5..39dd3135 100644 --- a/src/platform_impl/windows/window.rs +++ b/src/platform_impl/windows/window.rs @@ -808,7 +808,7 @@ impl<'a, T: 'static> InitData<'a, T> { // The user data will be registered for the window and can be accessed within the window event callback. pub unsafe fn on_nccreate(&mut self, window: HWND) -> Option { let runner = self.event_loop.runner_shared.clone(); - let result = runner.catch_unwind(|| unsafe { + let result = runner.catch_unwind(|| { let mut window = self.create_window(window); let window_data = self.create_window_data(&mut window); (window, window_data)