diff --git a/components/webxr/openxr/interaction_profiles.rs b/components/webxr/openxr/interaction_profiles.rs index 8fae3da3e55..a45b8dfff2e 100644 --- a/components/webxr/openxr/interaction_profiles.rs +++ b/components/webxr/openxr/interaction_profiles.rs @@ -47,6 +47,7 @@ pub enum InteractionProfileType { #[derive(Clone, Copy, Debug)] pub struct InteractionProfile<'a> { + #[allow(dead_code)] pub profile_type: InteractionProfileType, /// The interaction profile path pub path: &'static str, diff --git a/components/webxr/openxr/mod.rs b/components/webxr/openxr/mod.rs index 03651072da1..20d34e9d697 100644 --- a/components/webxr/openxr/mod.rs +++ b/components/webxr/openxr/mod.rs @@ -554,7 +554,7 @@ impl LayerManagerAPI for OpenXrLayerManager { let gl = contexts.bindings(device, context_id).unwrap(); unsafe { gl.delete_texture(depth_stencil_texture) }; } - let mut context = contexts + let context = contexts .context(device, context_id) .expect("missing GL context"); for surface_texture in mem::replace(&mut layer.surface_textures, vec![]) {