Skip to content

Commit 6f9e427

Browse files
style: rustfmt prompt.rs, subjects.rs, agent_loop.rs
Signed-off-by: Jorge <jramirezhdez02@gmail.com>
1 parent 4ec34ac commit 6f9e427

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

rsworkspace/crates/acp-nats/src/agent/prompt.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,9 @@ mod tests {
484484
let _cancel_tx = mock.inject_messages();
485485

486486
resp_tx
487-
.unbounded_send(make_nats_msg(b"{\"error\": \"runner failed with something\"}"))
487+
.unbounded_send(make_nats_msg(
488+
b"{\"error\": \"runner failed with something\"}",
489+
))
488490
.unwrap();
489491

490492
let result = handle(

rsworkspace/crates/acp-nats/src/nats/subjects.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,10 @@ mod tests {
275275

276276
#[test]
277277
fn prompt_alias_matches_session_prompt() {
278-
assert_eq!(agent::prompt("acp", "s1"), agent::session_prompt("acp", "s1"));
278+
assert_eq!(
279+
agent::prompt("acp", "s1"),
280+
agent::session_prompt("acp", "s1")
281+
);
279282
}
280283

281284
#[test]

rsworkspace/crates/trogon-agent-core/src/agent_loop.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,11 @@ mod tests {
825825
.get("not-a-url:///")
826826
.build()
827827
.unwrap_err();
828-
assert!(AgentError::Http(http_err).to_string().contains("HTTP error"));
828+
assert!(
829+
AgentError::Http(http_err)
830+
.to_string()
831+
.contains("HTTP error")
832+
);
829833
}
830834

831835
#[test]

0 commit comments

Comments
 (0)