From ad3018a92165a0f7ed78a08450aa3df3b961064b Mon Sep 17 00:00:00 2001 From: Euclid Ye Date: Tue, 19 Aug 2025 22:23:39 +0800 Subject: [PATCH] webxr: Fix compile warning for Windows after upgrade to rustc 1.89 (#38780) This is a follow up to https://github.com/servo/servo/pull/36818#issuecomment-3135078567. Since openxr is a feature only available on Windows, it was omitted. Testing: Fixes ``` warning: hiding a lifetime that's elided elsewhere is confusing --> components\webxr\openxr\input.rs:366:9 | 366 | &self, | ^^^^^ the lifetime is elided here ... 371 | ) -> Vec { | ------- the same lifetime is hidden here | = help: the same lifetime is referred to in inconsistent ways, making the signature confusing = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default help: use `'_` for type paths | 371 | ) -> Vec> { ``` Signed-off-by: Euclid Ye --- components/webxr/openxr/input.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/webxr/openxr/input.rs b/components/webxr/openxr/input.rs index 76bfe52a465..a52edd1dfae 100644 --- a/components/webxr/openxr/input.rs +++ b/components/webxr/openxr/input.rs @@ -368,7 +368,7 @@ impl OpenXRInput { select_name: &str, squeeze_name: Option<&str>, interaction_profile: &InteractionProfile, - ) -> Vec { + ) -> Vec> { let hand = hand_str(self.handedness); let path_aim_pose = instance .string_to_path(&format!("/user/hand/{}/input/aim/pose", hand))