From ab6be7968b25afb57fc428695693484ad8576718 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 20 Mar 2026 22:21:56 +0800 Subject: Refactor code to use modern Rust idioms and fix clippy lints --- gen/src/gen_iscc_script.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gen/src/gen_iscc_script.rs') diff --git a/gen/src/gen_iscc_script.rs b/gen/src/gen_iscc_script.rs index eabaab3..0169065 100644 --- a/gen/src/gen_iscc_script.rs +++ b/gen/src/gen_iscc_script.rs @@ -1,4 +1,4 @@ -use std::path::PathBuf; +use std::path::Path; use just_template::{Template, tmpl_param}; @@ -8,7 +8,7 @@ use crate::{ }; /// Generate Inno Setup installer script (Windows only) using just_template -pub async fn generate_installer_script(repo_root: &PathBuf) { +pub async fn generate_installer_script(repo_root: &Path) { let template_path = repo_root.join(SETUP_JV_CLI_ISS_TEMPLATE); let output_path = repo_root.join(SETUP_JV_CLI_ISS); -- cgit