From 83db53ec83b4d21d2feb1393722c1c91f31c4a7a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sat, 28 Nov 2026 05:06:10 +0100 Subject: [PATCH] layout: the walk's structs are crate-private by visibility, not by luck --- crates/thing-core/src/layout/tree.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/crates/thing-core/src/layout/tree.rs b/crates/thing-core/src/layout/tree.rs index ea48888..5b9f86c 100644 --- a/crates/thing-core/src/layout/tree.rs +++ b/crates/thing-core/src/layout/tree.rs @@ -13,20 +13,20 @@ static ABSENT: Bound = Bound::Absent; /// One laid node, in document order. `parent` is the entry of the nearest laid ancestor. pub(super) struct Entry<'a> { - pub id: &'a NodeId, - pub node: taffy::NodeId, - pub parent: Option, - pub clip: bool, - pub scroll: bool, + pub(super) id: &'a NodeId, + pub(super) node: taffy::NodeId, + pub(super) parent: Option, + pub(super) clip: bool, + pub(super) scroll: bool, } pub(super) struct Built<'a> { - pub taffy: TaffyTree, - pub root: taffy::NodeId, - pub entries: Vec>, + pub(super) taffy: TaffyTree, + pub(super) root: taffy::NodeId, + pub(super) entries: Vec>, /// The Taffy context of a measured leaf is its index here. - pub leaves: Vec>, - pub diagnostics: Vec, + pub(super) leaves: Vec>, + pub(super) diagnostics: Vec, } struct Builder<'a, 'm> {