From 9f4259721a777ad3fd6dd9927ffd57cc2cc785a9 Mon Sep 17 00:00:00 2001 From: cyqsimon <28627918+cyqsimon@users.noreply.github.com> Date: Thu, 2 Nov 2023 16:42:41 +0800 Subject: [PATCH] Fix codegen type declaration --- build/syntax_mapping.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/syntax_mapping.rs b/build/syntax_mapping.rs index 7fb86a86..778fc8ad 100644 --- a/build/syntax_mapping.rs +++ b/build/syntax_mapping.rs @@ -69,7 +69,7 @@ impl MappingList { let len = array_items.len(); format!( - "static STATIC_RULES: [(&'static str, &'static str); {len}] = [\n{items}\n];", + "static STATIC_RULES: [(&str, MappingTarget); {len}] = [\n{items}\n];", items = array_items.join(",\n") ) }