From 52f30915718d23486e6cc2d755145f1a1fbc1b3a Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 2 May 2019 11:26:24 -0400 Subject: [PATCH] Expose public Node constructor. --- markup5ever/rcdom.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markup5ever/rcdom.rs b/markup5ever/rcdom.rs index b75a1de1..420fcccb 100644 --- a/markup5ever/rcdom.rs +++ b/markup5ever/rcdom.rs @@ -115,7 +115,7 @@ pub struct Node { impl Node { /// Create a new node from its contents - fn new(data: NodeData) -> Rc { + pub fn new(data: NodeData) -> Rc { Rc::new(Node { data: data, parent: Cell::new(None),