clean up the API

This commit is contained in:
Evan Almloff committed 2023-01-20 13:23:26 -06:00
1 parent 1587b41829
commit ebb6300fc7
4 files changed
+255 -292

No files matched your search

+2 -2
View File
@@ -35,9 +35,9 @@ pub struct RealDom<V: FromAnyValue + Send = ()> {
impl<V: FromAnyValue + Send + Sync> RealDom<V> {
pub fn new(mut passes: Box<[TypeErasedPass<V>]>) -> RealDom<V> {
let tree = Tree::new();
let mut tree = Tree::new();
let root_id = tree.root();
let root = tree.get_node(root_id);
let mut root = tree.get_node(root_id);
let mut root_node: NodeData<V> = NodeData::new(NodeType::Element(ElementNode {
tag: "Root".to_string(),
namespace: Some("Root".to_string()),