From 04d12baa811d9ef8046b58d5e1f3e6c30a9f09c4 Mon Sep 17 00:00:00 2001 From: Jinlei Li Date: Tue, 8 Nov 2022 17:35:42 +0800 Subject: [PATCH] Change `get_metal_layer()` visiability to pub(crate) --- wgpu-hal/src/metal/surface.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu-hal/src/metal/surface.rs b/wgpu-hal/src/metal/surface.rs index 6206453ad1..8131e21018 100644 --- a/wgpu-hal/src/metal/surface.rs +++ b/wgpu-hal/src/metal/surface.rs @@ -98,7 +98,7 @@ impl super::Surface { } /// If not called on the main thread, this will panic. - pub unsafe fn get_metal_layer( + pub(crate) unsafe fn get_metal_layer( view: *mut Object, delegate: Option<&HalManagedMetalLayerDelegate>, ) -> *mut Object {