aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/trackevent.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/trackevent.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/trackevent.rs')
-rw-r--r--components/script/dom/trackevent.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/trackevent.rs b/components/script/dom/trackevent.rs
index ee1f72c67e5..f0d740d06dd 100644
--- a/components/script/dom/trackevent.rs
+++ b/components/script/dom/trackevent.rs
@@ -78,7 +78,7 @@ impl TrackEvent {
track: &Option<VideoTrackOrAudioTrackOrTextTrack>,
) -> DomRoot<TrackEvent> {
let te = reflect_dom_object_with_proto(
- Box::new(TrackEvent::new_inherited(&track)),
+ Box::new(TrackEvent::new_inherited(track)),
global,
proto,
);