From a76dda2b191d75597c6ce0e06b639e5886409057 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 25 May 2026 12:06:11 +0900 Subject: [PATCH] chore: cargo fmt --all on fix-683 branch --- rust/crates/runtime/src/session_control.rs | 27 ++++++++++++++-------- rust/crates/rusty-claude-cli/src/main.rs | 5 +++- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/rust/crates/runtime/src/session_control.rs b/rust/crates/runtime/src/session_control.rs index 874c59d9..362a0b54 100644 --- a/rust/crates/runtime/src/session_control.rs +++ b/rust/crates/runtime/src/session_control.rs @@ -1242,22 +1242,31 @@ mod tests { let session = persist_session_via_store(&store, "160 regression test"); // when/then — session exists and is listed before deletion - assert!(!store.list_sessions().expect("list").is_empty(), - "store should have at least one session"); - assert!(store.session_exists(&session.session_id), - "session should exist before deletion"); + assert!( + !store.list_sessions().expect("list").is_empty(), + "store should have at least one session" + ); + assert!( + store.session_exists(&session.session_id), + "session should exist before deletion" + ); // when — delete the session - let deleted = store.delete_session(&session.session_id) + let deleted = store + .delete_session(&session.session_id) .expect("delete should succeed"); // then — session is gone assert_eq!(deleted.id, session.session_id); assert!(!deleted.path.exists(), "session file should be removed"); - assert!(!store.session_exists(&session.session_id), - "session should not exist after deletion"); - assert!(store.list_sessions().expect("list").is_empty(), - "store should have no sessions after deletion"); + assert!( + !store.session_exists(&session.session_id), + "session should not exist after deletion" + ); + assert!( + store.list_sessions().expect("list").is_empty(), + "store should have no sessions after deletion" + ); fs::remove_dir_all(base).expect("temp dir should clean up"); } diff --git a/rust/crates/rusty-claude-cli/src/main.rs b/rust/crates/rusty-claude-cli/src/main.rs index 02089be9..1a670d09 100644 --- a/rust/crates/rusty-claude-cli/src/main.rs +++ b/rust/crates/rusty-claude-cli/src/main.rs @@ -902,7 +902,10 @@ fn parse_args(args: &[String]) -> Result { _ => None, }; if let Some(topic) = topic { - return Ok(CliAction::HelpTopic { topic, output_format }); + return Ok(CliAction::HelpTopic { + topic, + output_format, + }); } } return Ok(CliAction::Help { output_format });