From 70b8343e062c6425fb302bc6c1f50aa985a2e19b Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Wed, 11 Mar 2026 11:29:08 -0600 Subject: [PATCH] refactor(core): rename `Instance::name` to `_name` (#8957) --- wgpu-core/src/instance.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wgpu-core/src/instance.rs b/wgpu-core/src/instance.rs index b8a09b569..1f2f9c6a4 100644 --- a/wgpu-core/src/instance.rs +++ b/wgpu-core/src/instance.rs @@ -68,8 +68,7 @@ fn downlevel_default_limits_less_than_default_limits() { #[derive(Default)] pub struct Instance { - #[allow(dead_code)] - name: String, + _name: String, /// List of instances per `wgpu-hal` backend. /// @@ -105,7 +104,7 @@ impl Instance { telemetry: Option, ) -> Self { let mut this = Self { - name: name.to_owned(), + _name: name.to_owned(), instance_per_backend: Vec::new(), requested_backends: instance_desc.backends, supported_backends: Backends::empty(), @@ -186,7 +185,7 @@ impl Instance { hal_instance: ::Instance, ) -> Self { Self { - name, + _name: name, instance_per_backend: vec![(A::VARIANT, Box::new(hal_instance))], requested_backends: A::VARIANT.into(), supported_backends: A::VARIANT.into(),