From 49ff819bb1d8f59a0bcd91f45342f29f22373d5f Mon Sep 17 00:00:00 2001 From: Bowei Zhang Date: Mon, 11 Nov 2024 14:34:27 -0800 Subject: [PATCH] chore: resolve nit from linter --- window/src/os/macos/window.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index 316968ccec0..133dee1312d 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -678,7 +678,7 @@ impl HasDisplayHandle for Window { impl HasWindowHandle for Window { fn window_handle(&self) -> Result { - let mut handle = + let handle = AppKitWindowHandle::new(NonNull::new(self.ns_view as *mut _).expect("non-null")); unsafe { Ok(WindowHandle::borrow_raw(RawWindowHandle::AppKit(handle))) } }