From 7145a8ffaffe3cd5bd7584537b9864819f644d28 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 018ff0961..d45f16172 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))) } } -- 2.51.2