Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
geom3trik committed Nov 8, 2023
1 parent aea01c7 commit 8d9bb21
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,7 @@ where

// Compute stretch cross_before and stretch cross_after for auto cross children.
// TODO: I think this only needs to be done for parent-directed children...
for (index, child) in
children.iter_mut().filter(|child| child.node.cross(store, layout_type).is_auto()).enumerate()
for (index, child) in children.iter_mut().filter(|child| child.node.cross(store, layout_type).is_auto()).enumerate()
{
let mut child_cross_before = child.node.cross_before(store, layout_type);
let mut child_cross_after = child.node.cross_after(store, layout_type);
Expand Down Expand Up @@ -782,7 +781,7 @@ where
// Compute flexible space and size on the cross-axis for self-directed nodes.
for (index, child) in children
.iter_mut()
.filter(| child| child.node.position_type(store).unwrap_or_default() == PositionType::SelfDirected)
.filter(|child| child.node.position_type(store).unwrap_or_default() == PositionType::SelfDirected)
.enumerate()
{
let mut child_cross_before = child.node.cross_before(store, layout_type);
Expand Down

0 comments on commit 8d9bb21

Please sign in to comment.