Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

style: apply rustfmt to basename helper

Mauro Couto de Paiva1b95d9a43a70
diff --git a/crates/ai-memory-hooks/src/router.rs b/crates/ai-memory-hooks/src/router.rs
index 85a49cdc..f4b64c43 100644
--- a/crates/ai-memory-hooks/src/router.rs
+++ b/crates/ai-memory-hooks/src/router.rs
@@ -353,9 +353,7 @@ async fn resolve_project_ids(
// Split on both `/` and `\` so Windows paths sent to a Linux
// server still resolve to the final component.
let s = path.to_str()?;
- let name = s
- .rsplit(['/', '\\'])
- .find(|seg| !seg.is_empty())?;
+ let name = s.rsplit(['/', '\\']).find(|seg| !seg.is_empty())?;
if name.is_empty() {
return None;
}