Skip to content

Commit

Permalink
style: Rustfmt recent changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Nov 4, 2019
1 parent ac4894e commit a44515c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/style/traversal.rs
Expand Up @@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion components/style/values/specified/mod.rs
Expand Up @@ -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.
Expand Down

0 comments on commit a44515c

Please sign in to comment.