Skip to content

Commit 52f3091

Browse files
authored
Expose public Node constructor.
1 parent 121523b commit 52f3091

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

markup5ever/rcdom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub struct Node {
115115

116116
impl Node {
117117
/// Create a new node from its contents
118-
fn new(data: NodeData) -> Rc<Self> {
118+
pub fn new(data: NodeData) -> Rc<Self> {
119119
Rc::new(Node {
120120
data: data,
121121
parent: Cell::new(None),

0 commit comments

Comments
 (0)