Fixed some clippy warnings in components/script and components/devtools (#33689)

Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
This commit is contained in:
komuhangi 2024-10-07 19:32:48 +03:00 committed by GitHub
parent 53d24bb9ea
commit 028026bebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 11 deletions

View file

@ -185,8 +185,8 @@ impl StyleRuleActor {
css_text: "".into(), // TODO: Specify the css text
declarations: style
.into_iter()
.filter_map(|decl| {
Some(AppliedDeclaration {
.map(|decl| {
AppliedDeclaration {
colon_offsets: vec![],
is_name_valid: true,
is_used: IsUsed { used: true },
@ -196,7 +196,7 @@ impl StyleRuleActor {
priority: decl.priority,
terminator: "".into(),
value: decl.value,
})
}
})
.collect(),
href: node.base_uri.clone(),