style: run cargo fmt

This commit is contained in:
2026-05-22 22:03:27 +09:00
parent 458fdbc9e0
commit 93c91e7c06
15 changed files with 94 additions and 62 deletions
+4 -1
View File
@@ -74,7 +74,10 @@ impl FsStore {
if let Some(parent) = path.parent() {
fs::create_dir_all(parent)?;
}
let mut file = fs::OpenOptions::new().create(true).append(true).open(path)?;
let mut file = fs::OpenOptions::new()
.create(true)
.append(true)
.open(path)?;
file.write_all(line.as_bytes())?;
file.write_all(b"\n")?;
// Append-mode write is the durability boundary; an explicit
+1 -1
View File
@@ -56,8 +56,8 @@ pub use segment_log::{
LogEntry, POD_SCOPE_EXTENSION_DOMAIN, PodScopeSnapshot, RestoredState, SegmentOrigin,
collect_state,
};
pub use system_item::{SystemItem, render_pod_event};
pub use store::{Store, StoreError};
pub use system_item::{SystemItem, render_pod_event};
/// Session identifier — the fork-tree root. UUID v7 (time-ordered).
///
+1 -1
View File
@@ -4,11 +4,11 @@
//! The caller (typically Pod) holds the Worker directly and calls these
//! functions after state-mutating operations.
use crate::{SegmentId, SessionId};
use crate::logged_item::{LoggedItem, to_logged};
use crate::segment_log::{self, LogEntry, PodScopeSnapshot, SegmentOrigin};
use crate::store::{Store, StoreError};
use crate::system_item::SystemItem;
use crate::{SegmentId, SessionId};
use llm_worker::WorkerResult;
use llm_worker::llm_client::RequestConfig;
use llm_worker::llm_client::types::Item;