Skip to content

Commit 80ae24e

Browse files
style: rustfmt prompt_converter.rs, client.rs, connect.rs
Signed-off-by: Jorge Gonzalez <jgonzalez@straw-hat.co> Signed-off-by: Jorge <jramirezhdez02@gmail.com>
1 parent 8dbd7de commit 80ae24e

3 files changed

Lines changed: 6 additions & 7 deletions

File tree

rsworkspace/crates/trogon-acp-runner/src/prompt_converter.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ impl PromptEventConverter {
173173
return (vec![], None);
174174
}
175175

176-
let status = if exit_code == Some(0)
177-
|| (exit_code.is_none() && signal.is_none())
178-
{
176+
let status = if exit_code == Some(0) || (exit_code.is_none() && signal.is_none()) {
179177
ToolCallStatus::Completed
180178
} else {
181179
ToolCallStatus::Failed

rsworkspace/crates/trogon-mcp/src/client.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ fn safe_url(url: &str) -> String {
2929
None => after_scheme,
3030
};
3131
// Keep only host[:port] — stop at first '/', '?', or '#'.
32-
let host_end = authority
33-
.find(['/', '?', '#'])
34-
.unwrap_or(authority.len());
32+
let host_end = authority.find(['/', '?', '#']).unwrap_or(authority.len());
3533
format!("{}://{}", scheme, &authority[..host_end])
3634
}
3735

rsworkspace/crates/trogon-nats/src/connect.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,10 @@ mod tests {
442442
}
443443

444444
let result = rx.await.expect("sender must have fired");
445-
assert!(!result, "ServerError::AuthorizationViolation should send false");
445+
assert!(
446+
!result,
447+
"ServerError::AuthorizationViolation should send false"
448+
);
446449
}
447450

448451
/// Covers the `Err(_)` arm in the `select!` inside `connect()`:

0 commit comments

Comments
 (0)