tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5544Rust 88Markdown 11TOML 91926 Definiciones

Use core instead of std for LayoutTree impl

151c88b722bfee154977706e6f2bcfeeb205f9f3 · por Nico Burns · (hace 3 años) · padre 6c62bd8db · ver el árbol en este commit

Delta semántico · 1

src/node.rs

1 archivos · +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()