Skip to content

Commit

Permalink
Fix unsafe_op_in_unsafe_fn warning on nightly (rust-windowing#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
maroider authored Feb 25, 2022
1 parent fb8313a commit 40f48cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platform_impl/windows/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<WindowLongPtr> {
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)
Expand Down

0 comments on commit 40f48cb

Please sign in to comment.