From 9dccec8e2b0f5515079bc10c79176eb3173e7b83 Mon Sep 17 00:00:00 2001 From: Sam Mohr Date: Fri, 10 Jan 2025 10:55:40 -0800 Subject: [PATCH] Fix broken RustGlue.roc interpolation --- crates/glue/src/RustGlue.roc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/glue/src/RustGlue.roc b/crates/glue/src/RustGlue.roc index fa717deb61..af5c27c166 100644 --- a/crates/glue/src/RustGlue.roc +++ b/crates/glue/src/RustGlue.roc @@ -858,7 +858,7 @@ generate_non_nullable_unwrapped = \buf, types, name, tag_name, payload, discrimi pub struct ${escaped_name}(roc_std::RocBox<${name}_${tag_name}>); impl ${escaped_name} { - pub fn ${tag_name)(${constructor_arguments}) -> Self { + pub fn ${tag_name}(${constructor_arguments}) -> Self { let payload = ${name}_${tag_name} { ${payload_field_names} }; Self(roc_std::RocBox::new(payload)) @@ -2218,7 +2218,7 @@ type_name = \types, id -> RocList(elem) -> elem_name = type_name(types, elem) - "roc_std::RocList<{delem_name}>" + "roc_std::RocList<${elem_name}>" RocBox(elem) -> elem_name = type_name(types, elem)