From 5aa3fafb4acfa89c7d04e84abf7861607733e8ce Mon Sep 17 00:00:00 2001 From: soryu Date: Tue, 28 Apr 2026 00:55:25 +0100 Subject: 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) * 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) --------- Co-authored-by: Claude Opus 4.6 (1M context) --- makima/src/db/repository.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'makima/src/db/repository.rs') diff --git a/makima/src/db/repository.rs b/makima/src/db/repository.rs index 401da94..10633d5 100644 --- a/makima/src/db/repository.rs +++ b/makima/src/db/repository.rs @@ -4912,6 +4912,7 @@ pub async fn sync_supervisor_state( // ============================================================================= /// Helper to truncate string to max length +#[allow(dead_code)] fn truncate_string(s: &str, max_len: usize) -> String { if s.len() <= max_len { s.to_string() -- cgit v1.2.3