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
2026-08-27 22:10:28 +07:00
parent 884b19ccb5
commit 7b0b53671f
127 changed files with 1271 additions and 1156 deletions
+7 -12
View File
@@ -16,19 +16,19 @@ use anyhow::Result;
use tokio::sync::RwLock;
use zesdex_domain::cms::EditLog;
use zesdex_domain::Session;
use zesdex_domain::Settings;
use zesdex_domain::AppConfigRepository;
use zesdex_domain::EditLogRepository;
use zesdex_domain::Session;
use zesdex_domain::SessionLockRepository;
use zesdex_domain::SessionRepository;
use zesdex_domain::Settings;
use zesdex_domain::SettingsRepository;
use zesdex_infrastructure::lsp::manager::LspManager;
use zesdex_infrastructure::mcp::manager::McpManager;
use zesdex_infrastructure::persistence::FileSystemSessionLockRepository;
use zesdex_infrastructure::persistence::JsonAppConfigRepository;
use zesdex_infrastructure::persistence::JsonlEditLogRepository;
use zesdex_infrastructure::persistence::JsonSettingsRepository;
use zesdex_infrastructure::persistence::JsonlEditLogRepository;
use zesdex_infrastructure::AppConfig;
use zesdex_infrastructure::DirCache;
use zesdex_infrastructure::MentionIndex;
@@ -375,9 +375,7 @@ pub struct WorkflowEngine {
impl WorkflowEngine {
/// Create an empty workflow engine.
pub fn new() -> Self {
Self {
agents: Vec::new(),
}
Self { agents: Vec::new() }
}
}
@@ -487,8 +485,7 @@ impl AppStateRest {
session_dir: &std::path::Path,
memory_dir: PathBuf,
) -> Self {
let store_base_dir =
zesdex_infrastructure::Store::new().base_dir;
let store_base_dir = zesdex_infrastructure::Store::new().base_dir;
let settings = JsonSettingsRepository::new()
.load(&store_base_dir)
.unwrap_or_default();
@@ -705,8 +702,7 @@ impl AppStateRest {
/// Persist the current settings to the store and swallow any error.
pub fn save_settings(&self) {
let _ = JsonSettingsRepository::new()
.save(&self.store_base_dir(), &self.settings);
let _ = JsonSettingsRepository::new().save(&self.store_base_dir(), &self.settings);
}
}
@@ -807,8 +803,7 @@ pub fn create_session() -> Result<(
let workspace_roots = vec![std::env::current_dir()?];
let mut state = AppStateRest::new(workspace_roots, &session_dir, store.memory_dir.clone());
state.spawn_mention_index_build();
let session_repo =
zesdex_infrastructure::persistence::FileSystemSessionRepository::new();
let session_repo = zesdex_infrastructure::persistence::FileSystemSessionRepository::new();
state.sessions = session_repo
.list_sessions(&store.base_dir)
.unwrap_or_default();