gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 709HTML 662Markdown 12TOML 62348 Definitions

cargo fmt

4740fe4a97f78e7eb43df742f0ed264e32309e41 · by Adam Nemecek · (6 years ago) · parent dfdb5a21f · browse the tree at this commit

Semantic delta

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

2 files · +10 −35

diff --git a/src/lib.rs b/src/lib.rs
index 80448d802..6da5c1959 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,9 +10,9 @@ extern crate serde;
 pub mod geometry;
 pub mod node;
 pub mod number;
+pub mod prelude;
 pub mod result;
 pub mod style;
-pub mod prelude;
 
 mod algo;
 mod forest;
diff --git a/src/prelude.rs b/src/prelude.rs
index 574e0eba3..3e437b932 100644
--- a/src/prelude.rs
+++ b/src/prelude.rs
@@ -1,36 +1,11 @@
-pub use crate::geometry::{
-    Rect,
-    Size
-};
-
-pub use crate::node::{
-    Node,
-    Stretch
-};
-
-pub use crate::number::{
-    Number
-};
-
-pub use crate::result::{
-    Layout
-};
-
-pub use crate::style::{
-    AlignContent,
-    AlignItems,
-    AlignSelf,
-    Dimension,
-    Direction,
-    Display,
-    FlexDirection,
-    FlexWrap,
-    JustifyContent,
-    Overflow,
-    PositionType,
-    Style,
-};
-
 pub use crate::{
-    Error
+    geometry::{Rect, Size},
+    node::{Node, Stretch},
+    number::Number,
+    result::Layout,
+    style::{
+        AlignContent, AlignItems, AlignSelf, Dimension, Direction, Display, FlexDirection, FlexWrap, JustifyContent,
+        Overflow, PositionType, Style,
+    },
+    Error,
 };