style: format seluruh workspace dengan cargo fmt

Menyeragamkan format kode sesuai rustfmt (126 file). Sebelumnya
lefthook pre-commit 'cargo fmt --check' akan gagal pada commit apa pun.
This commit is contained in:
asepharyana committed 2026-08-27 22:10:28 +07:00
1 parent 884b19ccb5
commit 7b0b53671f
127 files changed
+1271 -1156

No files matched your search

+6 -4
View File
@@ -32,9 +32,7 @@ pub fn execute_cmd(cmd: &mut std::process::Command) -> Result<String> {
let combined = if stderr.is_empty() {
stdout
} else {
format!("{}\n{}", stdout, stderr)
.trim()
.to_string()
format!("{}\n{}", stdout, stderr).trim().to_string()
};
let code = output.status.code().unwrap_or(-1);
if output.status.success() {
@@ -151,6 +149,10 @@ pub fn log_write_edit_tool(
let _ = repo.append(session_dir, &mut el, entry);
debug!(tool = tool_name, path = path, "edit-log entry persisted");
} else {
warn!(tool = tool_name, path = path, "failed to open edit-log repository");
warn!(
tool = tool_name,
path = path,
"failed to open edit-log repository"
);
}
}