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 e01dbda commit 3c59042
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,8 @@ 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().enumerate().filter(|(_, child)| child.node.cross(store, layout_type).is_auto())
for (index, child) in
children.iter_mut().enumerate().filter(|(_, child)| child.node.cross(store, layout_type).is_auto())
{
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 @@ -934,7 +935,7 @@ where
.iter_mut()
.enumerate()
.filter(|(_, child)| child.node.position_type(store).unwrap_or_default() == PositionType::SelfDirected)
{
{
let mut child_main_before = child.node.main_before(store, layout_type);
let child_main = child.node.main(store, layout_type);
let mut child_main_after = child.node.main_after(store, layout_type);
Expand Down

0 comments on commit 3c59042

Please sign in to comment.