mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
clippy: Fix warnings in components/script/dom
& components/servo
(#33853)
* clippy: Fix warnings in components/script/dom & components/servo Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Move allow to the level of the named field Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * Add blank lines before & after field Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> * remove trailing whitespace Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> --------- Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com> Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Mukilan Thiyagarajan <mukilan@igalia.com>
This commit is contained in:
parent
b0a33d6b02
commit
a646c850c6
3 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,10 @@ pub struct HTMLFormElement {
|
||||||
elements: DomOnceCell<HTMLFormControlsCollection>,
|
elements: DomOnceCell<HTMLFormControlsCollection>,
|
||||||
generation_id: Cell<GenerationId>,
|
generation_id: Cell<GenerationId>,
|
||||||
controls: DomRefCell<Vec<Dom<Element>>>,
|
controls: DomRefCell<Vec<Dom<Element>>>,
|
||||||
|
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
past_names_map: DomRefCell<HashMapTracedValues<Atom, (Dom<Element>, NoTrace<Instant>)>>,
|
past_names_map: DomRefCell<HashMapTracedValues<Atom, (Dom<Element>, NoTrace<Instant>)>>,
|
||||||
|
|
||||||
firing_submission_events: Cell<bool>,
|
firing_submission_events: Cell<bool>,
|
||||||
rel_list: MutNullableDom<DOMTokenList>,
|
rel_list: MutNullableDom<DOMTokenList>,
|
||||||
|
|
||||||
|
|
|
@ -344,6 +344,7 @@ pub struct HTMLMediaElement {
|
||||||
#[ignore_malloc_size_of = "promises are hard"]
|
#[ignore_malloc_size_of = "promises are hard"]
|
||||||
pending_play_promises: DomRefCell<Vec<Rc<Promise>>>,
|
pending_play_promises: DomRefCell<Vec<Rc<Promise>>>,
|
||||||
/// Play promises which are soon to be fulfilled by a queued task.
|
/// Play promises which are soon to be fulfilled by a queued task.
|
||||||
|
#[allow(clippy::type_complexity)]
|
||||||
#[ignore_malloc_size_of = "promises are hard"]
|
#[ignore_malloc_size_of = "promises are hard"]
|
||||||
in_flight_play_promises_queue: DomRefCell<VecDeque<(Box<[Rc<Promise>]>, ErrorResult)>>,
|
in_flight_play_promises_queue: DomRefCell<VecDeque<(Box<[Rc<Promise>]>, ErrorResult)>>,
|
||||||
#[ignore_malloc_size_of = "servo_media"]
|
#[ignore_malloc_size_of = "servo_media"]
|
||||||
|
|
|
@ -993,7 +993,7 @@ fn create_compositor_channel(
|
||||||
ROUTER.add_route(
|
ROUTER.add_route(
|
||||||
compositor_ipc_receiver.to_opaque(),
|
compositor_ipc_receiver.to_opaque(),
|
||||||
Box::new(move |message| {
|
Box::new(move |message| {
|
||||||
let _ = compositor_proxy_clone.send(CompositorMsg::CrossProcess(
|
compositor_proxy_clone.send(CompositorMsg::CrossProcess(
|
||||||
message.to().expect("Could not convert Compositor message"),
|
message.to().expect("Could not convert Compositor message"),
|
||||||
));
|
));
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue