style: fix rustfmt formatting in session_manager

https://claude.ai/code/session_01Sk4XcMNNjTAVYLn4VTzeY4
This commit is contained in:
Claude
2026-03-23 07:12:02 +00:00
parent 4a26987d8e
commit 61a626a10d
+3 -9
View File
@@ -148,9 +148,8 @@ impl SessionManager {
// We only adopt it if no thread_map entry maps to this UUID —
// otherwise it belongs to a different channel scope.
// Use pre-parsed UUID if available, otherwise parse from string.
let ext_uuid = parsed_uuid.or_else(|| {
external_thread_id.and_then(|ext_tid| Uuid::parse_str(ext_tid).ok())
});
let ext_uuid = parsed_uuid
.or_else(|| external_thread_id.and_then(|ext_tid| Uuid::parse_str(ext_tid).ok()));
if let Some(ext_uuid) = ext_uuid {
let thread_map = self.thread_map.read().await;
@@ -1010,12 +1009,7 @@ mod tests {
// Resolve with parsed_uuid=None but a valid UUID string -- should
// fall back to parsing the string and still adopt the thread
let (_, resolved) = manager
.resolve_thread_with_parsed_uuid(
"user2",
"chan2",
Some(&known_id.to_string()),
None,
)
.resolve_thread_with_parsed_uuid("user2", "chan2", Some(&known_id.to_string()), None)
.await;
assert_eq!(resolved, known_id);
}