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 formatting in rename-workstream tests

Vinícius DS Andrade30a218d64ce5
diff --git a/crates/ai-memory-cli/src/commands/rename_workstream.rs b/crates/ai-memory-cli/src/commands/rename_workstream.rs
index e59b86a1..8e0d581e 100644
--- a/crates/ai-memory-cli/src/commands/rename_workstream.rs
+++ b/crates/ai-memory-cli/src/commands/rename_workstream.rs
@@ -111,9 +111,7 @@ mod tests {
a.project = Some(" ".into());
let error = run(&config, a).await.unwrap_err();
assert!(
- error
- .to_string()
- .contains("--project was passed empty"),
+ error.to_string().contains("--project was passed empty"),
"unexpected error: {error}"
);
}
@@ -125,9 +123,7 @@ mod tests {
a.workspace = Some("".into());
let error = run(&config, a).await.unwrap_err();
assert!(
- error
- .to_string()
- .contains("--workspace was passed empty"),
+ error.to_string().contains("--workspace was passed empty"),
"unexpected error: {error}"
);
}
@@ -139,9 +135,7 @@ mod tests {
a.from = Some(" ".into());
let error = run(&config, a).await.unwrap_err();
assert!(
- error
- .to_string()
- .contains("--from was passed empty"),
+ error.to_string().contains("--from was passed empty"),
"unexpected error: {error}"
);
}