mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Comments and minor fixes
This commit is contained in:
parent
123bc1d6de
commit
cb9645cd17
3 changed files with 13 additions and 6 deletions
|
@ -3202,8 +3202,7 @@ fn static_assert() {
|
|||
|
||||
let result = match list {
|
||||
Some(list) => {
|
||||
let vec: Vec<_> = list
|
||||
.into_iter()
|
||||
list.into_iter()
|
||||
.filter_map(|value| {
|
||||
// Handle none transform.
|
||||
if value.is_none() {
|
||||
|
@ -3212,12 +3211,11 @@ fn static_assert() {
|
|||
Some(Self::clone_single_transform_function(value))
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
if !vec.is_empty() { Some(vec) } else { None }
|
||||
.collect::<Vec<_>>()
|
||||
},
|
||||
_ => None,
|
||||
_ => vec![],
|
||||
};
|
||||
Transform(result.unwrap_or(vec!()))
|
||||
Transform(result)
|
||||
}
|
||||
|
||||
${impl_transition_time_value('delay', 'Delay')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue