From 60742bf72f23af4af9656703c932118bd99a5978 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 26 Jun 2022 15:36:11 -0700 Subject: [PATCH] Remove redundant `#[cfg]` conditions from `backend/direct.rs`. The entire `wgpu::backend::direct` module is included only under the condition: #[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))] So there is no need to apply this condition to any item within that module. --- wgpu/src/backend/direct.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/wgpu/src/backend/direct.rs b/wgpu/src/backend/direct.rs index b7a0099b60..1f46c461b5 100644 --- a/wgpu/src/backend/direct.rs +++ b/wgpu/src/backend/direct.rs @@ -47,7 +47,6 @@ impl Context { )) } - #[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))] pub unsafe fn instance_as_hal) -> R, R>( &self, hal_instance_callback: F, @@ -55,7 +54,6 @@ impl Context { self.0.instance_as_hal::(hal_instance_callback) } - #[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))] pub unsafe fn from_core_instance(core_instance: wgc::instance::Instance) -> Self { Self(wgc::hub::Global::from_instance( wgc::hub::IdentityManagerFactory, @@ -83,7 +81,6 @@ impl Context { self.0.create_adapter_from_hal(hal_adapter, PhantomData) } - #[cfg(any(not(target_arch = "wasm32"), feature = "webgl"))] pub unsafe fn adapter_as_hal) -> R, R>( &self, adapter: wgc::id::AdapterId,