From 2addb267fc4a852f91ece7e0fe2c769a84274e81 Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Sat, 7 Sep 2024 02:26:16 +0200 Subject: [PATCH] [wgpu-core] remove `FutureId.into_id()` --- wgpu-core/src/device/mod.rs | 8 ++------ wgpu-core/src/registry.rs | 5 ----- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/wgpu-core/src/device/mod.rs b/wgpu-core/src/device/mod.rs index 30da19e4ad..97ce639fe7 100644 --- a/wgpu-core/src/device/mod.rs +++ b/wgpu-core/src/device/mod.rs @@ -462,15 +462,11 @@ impl ImplicitPipelineIds<'_> { root_id: hub .pipeline_layouts .prepare(backend, Some(self.root_id)) - .into_id(), + .id(), group_ids: self .group_ids .iter() - .map(|id_in| { - hub.bind_group_layouts - .prepare(backend, Some(*id_in)) - .into_id() - }) + .map(|id_in| hub.bind_group_layouts.prepare(backend, Some(*id_in)).id()) .collect(), } } diff --git a/wgpu-core/src/registry.rs b/wgpu-core/src/registry.rs index ad3f4c1b11..6524a4df99 100644 --- a/wgpu-core/src/registry.rs +++ b/wgpu-core/src/registry.rs @@ -55,15 +55,10 @@ pub(crate) struct FutureId<'a, T: StorageItem> { } impl FutureId<'_, T> { - #[allow(dead_code)] pub fn id(&self) -> Id { self.id } - pub fn into_id(self) -> Id { - self.id - } - /// Assign a new resource to this ID. /// /// Registers it with the registry.