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:
tanishka 2024-10-16 21:04:14 +05:30 committed by GitHub
parent b0a33d6b02
commit a646c850c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -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"]