Splitting vweb into multiple modules

This commit is contained in:
2023-12-09 13:12:38 -06:00
parent 66e7e1884e
commit ca79642e43
8 changed files with 193 additions and 171 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ impl Compilable for Global {
state.init.emit_arg("storew", label.clone());
}
state.add_global(&self.name, |s| Variable::IndirectLabel(label.clone()))
state.add_global(&self.name, |_| Variable::IndirectLabel(label.clone()))
}
}
@@ -52,7 +52,7 @@ mod test {
#[test]
fn test_init() {
let mut state = state_for("global a = 5 + 3;");
let state = state_for("global a = 5 + 3;");
assert_eq!(
state.init.0.join("\n"),
vec![