style: Rustfmt recent changes.

This commit is contained in:
Emilio Cobos Álvarez 2019-11-04 12:51:33 +01:00
parent ac4894ed8d
commit a44515c314
2 changed files with 6 additions and 3 deletions

View file

@ -504,8 +504,8 @@ pub fn recalc_style_at<E, D, F>(
!child_cascade_requirement.can_skip_cascade() ||
is_servo_nonincremental_layout();
traverse_children = traverse_children &&
!traversal.should_cull_subtree(context, element, &data);
traverse_children =
traverse_children && !traversal.should_cull_subtree(context, element, &data);
// Examine our children, and enqueue the appropriate ones for traversal.
if traverse_children {

View file

@ -183,7 +183,10 @@ impl Number {
value: CSSFloat,
calc_clamping_mode: Option<AllowedNumericType>,
) -> Self {
Self { value, calc_clamping_mode }
Self {
value,
calc_clamping_mode,
}
}
/// Returns this percentage as a number.