mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix manual_map warnings (#31922)
This commit is contained in:
parent
5d518ca8dc
commit
7349ce5b6a
8 changed files with 34 additions and 51 deletions
|
@ -122,13 +122,9 @@ impl XRInputSourceMethods for XRInputSource {
|
|||
|
||||
// https://github.com/immersive-web/webxr-hands-input/blob/master/explainer.md
|
||||
fn GetHand(&self) -> Option<DomRoot<XRHand>> {
|
||||
if let Some(ref hand) = self.info.hand_support {
|
||||
Some(
|
||||
self.hand
|
||||
.or_init(|| XRHand::new(&self.global(), self, hand.clone())),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
self.info.hand_support.as_ref().map(|hand| {
|
||||
self.hand
|
||||
.or_init(|| XRHand::new(&self.global(), self, hand.clone()))
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue