Skip to content

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

Rust

style(cli): rustfmt assertion wrapping in move-session tests

Vinícius DS Andrade5a3cf0aa1e5b
diff --git a/crates/ai-memory-cli/src/commands/move_session.rs b/crates/ai-memory-cli/src/commands/move_session.rs
index 096e3704..bc150399 100644
--- a/crates/ai-memory-cli/src/commands/move_session.rs
+++ b/crates/ai-memory-cli/src/commands/move_session.rs
@@ -355,7 +355,9 @@ mod tests {
let a = args(None, Some(" "));
let error = run(&config, a).await.unwrap_err();
assert!(
- error.to_string().contains("--from-project was passed empty"),
+ error
+ .to_string()
+ .contains("--from-project was passed empty"),
"unexpected error: {error}"
);
}
@@ -367,7 +369,9 @@ mod tests {
a.from_workspace = Some("".into());
let error = run(&config, a).await.unwrap_err();
assert!(
- error.to_string().contains("--from-workspace was passed empty"),
+ error
+ .to_string()
+ .contains("--from-workspace was passed empty"),
"unexpected error: {error}"
);
}
@@ -391,7 +395,9 @@ mod tests {
a.to_workspace = Some(" ".into());
let error = run(&config, a).await.unwrap_err();
assert!(
- error.to_string().contains("--to-workspace was passed empty"),
+ error
+ .to_string()
+ .contains("--to-workspace was passed empty"),
"unexpected error: {error}"
);
}