tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 788HTML 740Markdown 12TOML 62536 Definitions

Use core instead of std for LayoutTree impl

151c88b722bfee154977706e6f2bcfeeb205f9f3 · by Nico Burns · (3 years ago) · parent 6c62bd8db · browse the tree at this commit

Semantic delta · 1

src/node.rs

1 files · +1 −1

diff --git a/src/node.rs b/src/node.rs
index 433ea39b8..e4f575b71 100644
--- a/src/node.rs
+++ b/src/node.rs
@@ -58,7 +58,7 @@ impl Default for Taffy {
 }
 
 impl LayoutTree for Taffy {
-    type ChildIter<'a> = std::slice::Iter<'a, DefaultKey>;
+    type ChildIter<'a> = core::slice::Iter<'a, DefaultKey>;
 
     fn children(&self, node: Node) -> Self::ChildIter<'_> {
         self.children[node].iter()