Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar committed Nov 16, 2024
1 parent b714154 commit 5c2fa95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/samples/windows/direct3d12/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ extern "system" fn wndproc<S: DXSample>(
_ => {
let user_data = unsafe { GetWindowLongPtrA(window, GWLP_USERDATA) };
let sample = std::ptr::NonNull::<S>::new(user_data as _);
let handled = sample.is_some_and(|mut s| {
sample_wndproc(unsafe { s.as_mut() }, message, wparam)
});
let handled =
sample.is_some_and(|mut s| sample_wndproc(unsafe { s.as_mut() }, message, wparam));

if handled {
LRESULT::default()
Expand Down

0 comments on commit 5c2fa95

Please sign in to comment.