From 5c2fa95a8ff0537138f89452ff835f2f91631be3 Mon Sep 17 00:00:00 2001 From: Rafael Rivera Date: Sat, 16 Nov 2024 13:37:39 -0800 Subject: [PATCH] Format --- crates/samples/windows/direct3d12/src/main.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/samples/windows/direct3d12/src/main.rs b/crates/samples/windows/direct3d12/src/main.rs index 0ff2bc2eb2..3d9513205a 100644 --- a/crates/samples/windows/direct3d12/src/main.rs +++ b/crates/samples/windows/direct3d12/src/main.rs @@ -163,9 +163,8 @@ extern "system" fn wndproc( _ => { let user_data = unsafe { GetWindowLongPtrA(window, GWLP_USERDATA) }; let sample = std::ptr::NonNull::::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()