summaryrefslogtreecommitdiff
path: root/build.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-01-23 02:37:58 +0800
committer魏曹先生 <1992414357@qq.com>2026-01-23 02:59:45 +0800
commit137c41af5336d06351d95a37788401dd093efe19 (patch)
tree4646f736f315e928a32320e28f68777807e24503 /build.rs
parent47bf9b75f6dd8c2d3c3f1fb947a16e0e055f49cf (diff)
Fix: convert renderer_list to .rs to stop RA false errors
Diffstat (limited to 'build.rs')
-rw-r--r--build.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/build.rs b/build.rs
index 7763be2..f657a7f 100644
--- a/build.rs
+++ b/build.rs
@@ -11,8 +11,8 @@ const SETUP_JV_CLI_ISS_TEMPLATE: &str = "./templates/setup_jv_cli.iss";
const REGISTRY_RS: &str = "./src/cmd/cmds/_registry.rs";
const REGISTRY_RS_TEMPLATE: &str = "./templates/_registry.rs.template";
-const RENDERER_LIST_TEMPLATE: &str = "./templates/renderer_list.txt";
-const RENDERER_LIST: &str = "./src/cmd/renderers/renderer_list.txt";
+const RENDERER_LIST_TEMPLATE: &str = "./templates/renderer_list.rs.template";
+const RENDERER_LIST: &str = "./src/cmd/renderers/renderer_list.rs";
const REGISTRY_TOML: &str = "./Registry.toml";
@@ -387,7 +387,7 @@ fn generate_renderer_list_file(repo_root: &PathBuf) -> Result<(), Box<dyn std::e
.map(|(name, renderer_type)| {
renderer_template
.replace("<<NAME>>", name)
- .replace("<<TYPE>>", renderer_type)
+ .replace("RendererType", renderer_type)
.trim_matches('\n')
.to_string()
})