From 6720f6213f220424a19bb03bee5fff0eef7ad578 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 1 Jul 2024 14:42:36 -0700 Subject: [PATCH] fix compiling with no template --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 051ed67..100d2b1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -780,7 +780,7 @@ async fn compile(config:CompileConfig)->AResult<()>{ let mut dom=match config.template{ //mr dom doesn't like tokio files Some(template_path)=>load_dom(std::io::BufReader::new(std::fs::File::open(template_path)?))?, - None=>rbx_dom_weak::WeakDom::default(), + None=>rbx_dom_weak::WeakDom::new(rbx_dom_weak::InstanceBuilder::new("DataModel")), }; rox_compiler::compile(rox_compiler::CompileConfig{