aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/xrtest.rs
diff options
context:
space:
mode:
authorRichard Dushime <45734838+richarddushime@users.noreply.github.com>2024-03-19 19:05:56 +0300
committerGitHub <noreply@github.com>2024-03-19 16:05:56 +0000
commit01ca220f83f549d03da566f4becdf826819747ae (patch)
tree43e7fb2dda3e536ce7e0d0427739a2fd70b78deb /components/script/dom/xrtest.rs
parent676f655647fe261c9a9f005122cbbca0263a2625 (diff)
downloadservo-01ca220f83f549d03da566f4becdf826819747ae.tar.gz
servo-01ca220f83f549d03da566f4becdf826819747ae.zip
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>
Diffstat (limited to 'components/script/dom/xrtest.rs')
-rw-r--r--components/script/dom/xrtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/xrtest.rs b/components/script/dom/xrtest.rs
index 204784e7934..3356451a9e2 100644
--- a/components/script/dom/xrtest.rs
+++ b/components/script/dom/xrtest.rs
@@ -72,7 +72,7 @@ impl XRTestMethods for XRTest {
let p = Promise::new(&global);
let origin = if let Some(ref o) = init.viewerOrigin {
- match get_origin(&o) {
+ match get_origin(o) {
Ok(origin) => Some(origin),
Err(e) => {
p.reject_error(e);