summaryrefslogtreecommitdiff
path: root/makima/src/daemon/storage/patch.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-04-28 00:55:25 +0100
committerGitHub <noreply@github.com>2026-04-28 00:55:25 +0100
commit5aa3fafb4acfa89c7d04e84abf7861607733e8ce (patch)
tree8a444bcc3b595c5655b71e76a70e7b47936225f8 /makima/src/daemon/storage/patch.rs
parentd6f01a69f61a40843054f27b427687e1fa1cedfb (diff)
downloadsoryu-5aa3fafb4acfa89c7d04e84abf7861607733e8ce.tar.gz
soryu-5aa3fafb4acfa89c7d04e84abf7861607733e8ce.zip
fix: resolve compilation error and warnings in Rust backend (#95)
* fix: resolve compilation error and warnings in Rust backend - Fix syntax error in directive.rs phase_replanning (bad merge created duplicate code blocks with broken `.await {` syntax) - Remove unused imports: WorktreeError, DaemonReauthStatus, ratatui::prelude - Prefix unused variables with underscore: claude_command, content, owner_id - Suppress unused_assignments warning on final_exit_code - Add #[allow(unused_imports)] for cfg(unix) CommandExt imports Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * WIP: heartbeat checkpoint * fix: suppress remaining compiler warnings for clean build - Add #[allow(dead_code)] for unused but intentionally kept functions - Remove useless self-assignments in listen handler - Fixes: truncate_string, checkout_commit, handle_get_worktree_diff, default_max_retries, STREAM_CHUNK_MS, listen(), MessageResponse.role Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'makima/src/daemon/storage/patch.rs')
-rw-r--r--makima/src/daemon/storage/patch.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/makima/src/daemon/storage/patch.rs b/makima/src/daemon/storage/patch.rs
index 05c45a3..c9bc6f5 100644
--- a/makima/src/daemon/storage/patch.rs
+++ b/makima/src/daemon/storage/patch.rs
@@ -387,6 +387,7 @@ fn parse_diff_stat(stat_output: &str) -> (usize, usize) {
}
/// Checkout a specific commit in the worktree.
+#[allow(dead_code)]
pub async fn checkout_commit(worktree_path: &Path, sha: &str) -> Result<(), PatchError> {
let output = Command::new("git")
.current_dir(worktree_path)