Bug 1593642 - Rustfmt recent changes.

Differential Revision: https://phabricator.services.mozilla.com/D51584

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Emilio Cobos Álvarez 2019-11-04 12:52:29 +00:00
parent 2e26c4e5a1
commit 63fd83beea
2 changed files with 6 additions and 3 deletions

View File

@ -497,8 +497,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.