diff --git a/libs/wingc/src/jsify.rs b/libs/wingc/src/jsify.rs index e79bdd37149..f93c85de7dc 100644 --- a/libs/wingc/src/jsify.rs +++ b/libs/wingc/src/jsify.rs @@ -761,9 +761,7 @@ impl<'a> JSifier<'a> { // create _toInflightType function that just requires the generated struct file code.open("static _toInflightType(context) {".to_string()); - code.line(format!( - "return `require(\"./${{require('path').basename(__filename)}}\")(${{ context._lift(stdStruct) }})`;", - )); + code.line("return `require(\"./${require('path').basename(__filename)}\")(${ context._lift(stdStruct) })`;".to_string()); code.close("}"); // close class