aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-29 04:14:56 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-29 04:14:56 +0800
commitc58fee1ef37b0f86fa250331247a305cbf9bc360 (patch)
tree8b77b0b31b38632bf2acb54672dc7ee7b2770c9a /mingling_core/src
parent3423840fe9711985f2460d5ff59505ccd94c758d (diff)
fix(deps): bump just_template to 0.2.0 and migrate to new API
Diffstat (limited to 'mingling_core/src')
-rw-r--r--mingling_core/src/builds/comp.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/mingling_core/src/builds/comp.rs b/mingling_core/src/builds/comp.rs
index b826531..2abb1e1 100644
--- a/mingling_core/src/builds/comp.rs
+++ b/mingling_core/src/builds/comp.rs
@@ -1,6 +1,6 @@
use std::path::PathBuf;
-use just_template::tmpl_param;
+use just_template::tmpl;
use crate::ShellFlag;
@@ -86,7 +86,7 @@ pub fn build_comp_script_to(
) -> Result<(), std::io::Error> {
let (tmpl_str, ext) = get_tmpl(shell_flag);
let mut tmpl = just_template::Template::from(tmpl_str);
- tmpl_param!(tmpl, bin_name = bin_name);
+ tmpl!(bin_name = bin_name);
let target_path = std::path::PathBuf::from(target_dir);
std::fs::create_dir_all(&target_path)?;
let output_path = target_path.join(format!("{bin_name}_comp{ext}"));
@@ -112,7 +112,7 @@ pub fn build_comp_script_to_file(
) -> Result<(), std::io::Error> {
let (tmpl_str, _ext) = get_tmpl(shell_flag);
let mut tmpl = just_template::Template::from(tmpl_str);
- tmpl_param!(tmpl, bin_name = bin_name);
+ tmpl!(bin_name = bin_name);
std::fs::write(output_path.into(), tmpl.to_string())
}