mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +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
|
@ -35,12 +35,12 @@ impl VideoTrack {
|
|||
) -> VideoTrack {
|
||||
VideoTrack {
|
||||
reflector_: Reflector::new(),
|
||||
id: id.into(),
|
||||
kind: kind.into(),
|
||||
label: label.into(),
|
||||
language: language.into(),
|
||||
id,
|
||||
kind,
|
||||
label,
|
||||
language,
|
||||
selected: Cell::new(false),
|
||||
track_list: DomRefCell::new(track_list.map(|t| Dom::from_ref(t))),
|
||||
track_list: DomRefCell::new(track_list.map(Dom::from_ref)),
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -69,7 +69,7 @@ impl VideoTrack {
|
|||
}
|
||||
|
||||
pub fn selected(&self) -> bool {
|
||||
self.selected.get().clone()
|
||||
self.selected.get()
|
||||
}
|
||||
|
||||
pub fn set_selected(&self, value: bool) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue