mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
clippy: Fix many warnings in components/script
(#31717)
* Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
676f655647
commit
01ca220f83
41 changed files with 200 additions and 212 deletions
|
@ -109,7 +109,7 @@ impl XRInputSourceMethods for XRInputSource {
|
|||
if self.info.supports_grip {
|
||||
Some(self.grip_space.or_init(|| {
|
||||
let global = self.global();
|
||||
XRSpace::new_inputspace(&global, &self.session, &self, true)
|
||||
XRSpace::new_inputspace(&global, &self.session, self, true)
|
||||
}))
|
||||
} else {
|
||||
None
|
||||
|
@ -125,7 +125,7 @@ impl XRInputSourceMethods for XRInputSource {
|
|||
if let Some(ref hand) = self.info.hand_support {
|
||||
Some(
|
||||
self.hand
|
||||
.or_init(|| XRHand::new(&self.global(), &self, hand.clone())),
|
||||
.or_init(|| XRHand::new(&self.global(), self, hand.clone())),
|
||||
)
|
||||
} else {
|
||||
None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue