refactor: optimize error message handling and improve cloning in various functions

This commit is contained in:
Tunglies
2025-11-06 10:26:40 +08:00
parent 69a706b438
commit 651513c826
7 changed files with 12 additions and 21 deletions

View File

@@ -62,7 +62,7 @@ pub fn use_script(
});"#,
));
let config = use_lowercase(config.clone());
let config = use_lowercase(config);
let config_str = serde_json::to_string(&config)?;
// 仅处理 name 参数中的特殊字符