Skip to content

Commit

Permalink
Expose public Node constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdm authored May 2, 2019
1 parent 121523b commit 52f3091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion markup5ever/rcdom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub struct Node {

impl Node {
/// Create a new node from its contents
fn new(data: NodeData) -> Rc<Self> {
pub fn new(data: NodeData) -> Rc<Self> {
Rc::new(Node {
data: data,
parent: Cell::new(None),
Expand Down

0 comments on commit 52f3091

Please sign in to comment.