gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 1111HTML 1039Markdown 12TOML 94520 Definitions

minor refactoring

4989df2ffae73baa7122895576b69fac7443f5ff · by Adam Nemecek · (6 years ago) · parent acd3dc988 · browse the tree at this commit

Semantic delta · 1

src/algo.rs

1 files · +1 −1

diff --git a/src/algo.rs b/src/algo.rs
index e9eed03d1..d68308918 100644
--- a/src/algo.rs
+++ b/src/algo.rs
@@ -90,7 +90,7 @@ impl Forest {
 
         self.nodes[root].layout = result::Layout {
             order: 0,
-            size: Size { width: result.size.width, height: result.size.height },
+            size: result.size,
             location: Point::zero(),
         };