mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -72,7 +72,7 @@ impl TextTrack {
|
|||
|
||||
pub fn get_cues(&self) -> DomRoot<TextTrackCueList> {
|
||||
self.cue_list
|
||||
.or_init(|| TextTrackCueList::new(&self.global().as_window(), &[]))
|
||||
.or_init(|| TextTrackCueList::new(self.global().as_window(), &[]))
|
||||
}
|
||||
|
||||
pub fn id(&self) -> &str {
|
||||
|
@ -131,7 +131,7 @@ impl TextTrackMethods for TextTrack {
|
|||
fn GetActiveCues(&self) -> Option<DomRoot<TextTrackCueList>> {
|
||||
// XXX implement active cues logic
|
||||
// https://github.com/servo/servo/issues/22314
|
||||
Some(TextTrackCueList::new(&self.global().as_window(), &[]))
|
||||
Some(TextTrackCueList::new(self.global().as_window(), &[]))
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-texttrack-addcue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue