fix: improve logging format for old shortcut removal failure

This commit is contained in:
Tunglies
2025-07-14 19:31:19 +08:00
parent 077f3e79f8
commit 57476741cd

View File

@@ -45,7 +45,7 @@ pub fn create_shortcut() -> Result<()> {
// 移除旧的快捷方式
if old_shortcut_path.exists() {
if let Err(e) = fs::remove_file(&old_shortcut_path) {
info!(target: "app", "移除旧快捷方式失败: {}", e);
info!(target: "app", "移除旧快捷方式失败: {e}");
} else {
info!(target: "app", "成功移除旧快捷方式");
}