Skip to content

Commit

Permalink
Make Node::new pub(crate) only
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Dec 10, 2024
1 parent 017f8ea commit e12a3c2
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 @@ -94,7 +94,7 @@ pub struct Node {
}

impl Node {
pub fn new(tree: *mut Slab<Node>, id: usize, guard: SharedRwLock, data: NodeData) -> Self {
pub (crate) fn new(tree: *mut Slab<Node>, id: usize, guard: SharedRwLock, data: NodeData) -> Self {
Self {
tree,

Expand Down

0 comments on commit e12a3c2

Please sign in to comment.