diff options
author | komuhangi <51232461+jahielkomu@users.noreply.github.com> | 2024-10-07 19:32:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-07 16:32:48 +0000 |
commit | 028026bebe992431ede7c57b7e3065616d859026 (patch) | |
tree | 5c9e89571a566171f60679351049b9352fa53347 /components/devtools | |
parent | 53d24bb9ea5e3689dd928c1254af55fb2d90f164 (diff) | |
download | servo-028026bebe992431ede7c57b7e3065616d859026.tar.gz servo-028026bebe992431ede7c57b7e3065616d859026.zip |
Fixed some clippy warnings in components/script and components/devtools (#33689)
Signed-off-by: jahielkomu <ktumuhairwe24@gmail.com>
Diffstat (limited to 'components/devtools')
-rw-r--r-- | components/devtools/actors/inspector/style_rule.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/devtools/actors/inspector/style_rule.rs b/components/devtools/actors/inspector/style_rule.rs index a2e03c50859..15c39e48903 100644 --- a/components/devtools/actors/inspector/style_rule.rs +++ b/components/devtools/actors/inspector/style_rule.rs @@ -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(), |