Skip to content

Commit

Permalink
Make Node::tree field private (fixes #169)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <[email protected]>
  • Loading branch information
nicoburns committed Dec 10, 2024
1 parent be8894f commit 017f8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/blitz-dom/src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ pub enum DisplayOuter {
// todo: might be faster to migrate this to ecs and split apart at a different boundary
pub struct Node {
// The actual tree we belong to. This is unsafe!!
pub tree: *mut Slab<Node>,
tree: *mut Slab<Node>,

/// Our Id
pub id: usize,
Expand Down

0 comments on commit 017f8ea

Please sign in to comment.