From 82501a9c0941a06d107d69f44d65a4c2d6493c94 Mon Sep 17 00:00:00 2001 From: Mads Marquart Date: Sun, 8 Sep 2024 03:13:20 +0200 Subject: [PATCH] Un-uncomment code --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 79bc545..97c2128 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -317,7 +317,7 @@ impl Layer { /// [layer-backed]: https://developer.apple.com/documentation/appkit/nsview/1483695-wantslayer?language=objc /// [`AppKitWindowHandle`]: https://docs.rs/raw-window-handle/0.6.2/raw_window_handle/struct.AppKitWindowHandle.html pub unsafe fn from_ns_view(ns_view_ptr: NonNull) -> Self { - // let _mtm = MainThreadMarker::new().expect("can only access NSView on the main thread"); + let _mtm = MainThreadMarker::new().expect("can only access NSView on the main thread"); // SAFETY: Caller ensures that the pointer is a valid `NSView`. //