gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Sutichaykuna

Use core instead of std for LayoutTree impl

151c88b722bfee154977706e6f2bcfeeb205f9f3 · ruwaq Nico Burns · (3 wata ñawpaq) · tayta 6c62bd8db · kay commitpi sach'ata qhaway

Semántico sayk'uy · 1

src/node.rs

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