From c58fee1ef37b0f86fa250331247a305cbf9bc360 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 29 Jun 2026 04:14:56 +0800 Subject: fix(deps): bump just_template to 0.2.0 and migrate to new API --- mingling_core/src/builds/comp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'mingling_core/src') 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()) } -- cgit