mirror of
https://github.com/servo/servo.git
synced 2025-07-22 06:43:40 +01:00
clippy: Fix option_map_unit_fn warnings (#31906)
This commit is contained in:
parent
a5bcae212a
commit
da76ebabe9
11 changed files with 43 additions and 30 deletions
|
@ -159,6 +159,8 @@ impl SpecificCSSRule for CSSKeyframesRule {
|
|||
}
|
||||
|
||||
fn deparent_children(&self) {
|
||||
self.rulelist.get().map(|list| list.deparent_all());
|
||||
if let Some(list) = self.rulelist.get() {
|
||||
list.deparent_all()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue