Skip to content

Commit

Permalink
clippy: Fix warnings in components/script/dom & components/servo
Browse files Browse the repository at this point in the history
Signed-off-by: taniishkaaa <[email protected]>
  • Loading branch information
taniishkaaa committed Oct 15, 2024
1 parent 564478e commit 284e8db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions components/script/dom/htmlformelement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ use crate::task_source::TaskSource;
#[derive(Clone, Copy, JSTraceable, MallocSizeOf, PartialEq)]
pub struct GenerationId(u32);

#[allow(clippy::type_complexity)]
#[dom_struct]
pub struct HTMLFormElement {
htmlelement: HTMLElement,
Expand Down
1 change: 1 addition & 0 deletions components/script/dom/htmlmediaelement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ pub struct HTMLMediaElement {
#[ignore_malloc_size_of = "promises are hard"]
pending_play_promises: DomRefCell<Vec<Rc<Promise>>>,
/// Play promises which are soon to be fulfilled by a queued task.
#[allow(clippy::type_complexity)]
#[ignore_malloc_size_of = "promises are hard"]
in_flight_play_promises_queue: DomRefCell<VecDeque<(Box<[Rc<Promise>]>, ErrorResult)>>,
#[ignore_malloc_size_of = "servo_media"]
Expand Down
2 changes: 1 addition & 1 deletion components/servo/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -990,7 +990,7 @@ fn create_compositor_channel(
ROUTER.add_route(
compositor_ipc_receiver.to_opaque(),
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"),
));
}),
Expand Down

0 comments on commit 284e8db

Please sign in to comment.