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 message tests

Vinícius DS Andrade0c4f4477d850
diff --git a/crates/ai-memory-cli/src/commands/message.rs b/crates/ai-memory-cli/src/commands/message.rs
index bacf8f92..285f09a6 100644
--- a/crates/ai-memory-cli/src/commands/message.rs
+++ b/crates/ai-memory-cli/src/commands/message.rs
@@ -471,7 +471,9 @@ mod tests {
};
let error = pop(&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}"
);
}
@@ -504,7 +506,9 @@ mod tests {
};
let error = cancel(&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}"
);
}
@@ -523,7 +527,9 @@ mod tests {
};
let error = send(&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}"
);
}
@@ -542,7 +548,9 @@ mod tests {
};
let error = send(&config, a).await.unwrap_err();
assert!(
- error.to_string().contains("--to-project was passed empty"),
+ error
+ .to_string()
+ .contains("--to-project was passed empty"),
"unexpected error: {error}"
);
}