Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
adilhafeez committed Oct 3, 2024
1 parent 65056cd commit 3a22a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/src/stream_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ impl HttpContext for StreamContext {

fn on_http_response_headers(&mut self, _num_headers: usize, _end_of_stream: bool) -> Action {
if let Some(tool_calls) = self.tool_calls.as_ref() {
if tool_calls.len() > 0 {
if !tool_calls.is_empty() {
let tool_calls_str = serde_json::to_string(&tool_calls).unwrap();
self.add_http_response_header("x-arch-tool-calls", tool_calls_str.as_str());
}
Expand Down

0 comments on commit 3a22a4e

Please sign in to comment.