tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91942 Definitions

cargo fmt

fb8b549c665300cd2dbab082be482b27913f0ad4 · by Emil Sjölander · (7 years ago) · parent f3b4a183e · browse the tree at this commit

Semantic delta

No definition changed: this change is text, documentation or data.

1 files · +1 −6

diff --git a/src/algo.rs b/src/algo.rs
index 025d30f04..63f572a7f 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -1286,12 +1286,7 @@ fn compute_internal(
             order,
             size: Size { width: 0.0, height: 0.0 },
             location: Point { x: 0.0, y: 0.0 },
-            children: node
-                .children
-                .iter()
-                .enumerate()
-                .map(|(order, child)| hidden_layout(child, order as _))
-                .collect(),
+            children: node.children.iter().enumerate().map(|(order, child)| hidden_layout(child, order as _)).collect(),
         }
     }