chore: apply cargo fmt formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
harald 2026-02-25 16:49:47 +01:00
parent 7ca71f500a
commit 6e8c799af5
3 changed files with 13 additions and 3 deletions

View file

@ -1054,7 +1054,10 @@ impl Provider for OpenAiCompatibleProvider {
let url = self.chat_completions_url(); let url = self.chat_completions_url();
let response = self let response = self
.apply_auth_header(self.http_client().post(&url).json(&native_request), credential) .apply_auth_header(
self.http_client().post(&url).json(&native_request),
credential,
)
.send() .send()
.await?; .await?;

View file

@ -334,7 +334,10 @@ impl SecurityPolicy {
if risk == CommandRiskLevel::High { if risk == CommandRiskLevel::High {
if self.block_high_risk_commands { if self.block_high_risk_commands {
tracing::debug!(command, "Shell command blocked: high-risk disallowed by policy"); tracing::debug!(
command,
"Shell command blocked: high-risk disallowed by policy"
);
return Err("Command blocked: high-risk command is disallowed by policy".into()); return Err("Command blocked: high-risk command is disallowed by policy".into());
} }
if self.autonomy == AutonomyLevel::Supervised && !approved { if self.autonomy == AutonomyLevel::Supervised && !approved {

View file

@ -170,7 +170,11 @@ impl Tool for ShellTool {
}) })
} }
Err(_) => { Err(_) => {
tracing::warn!(command, timeout_secs = SHELL_TIMEOUT_SECS, "Shell command timed out"); tracing::warn!(
command,
timeout_secs = SHELL_TIMEOUT_SECS,
"Shell command timed out"
);
Ok(ToolResult { Ok(ToolResult {
success: false, success: false,
output: String::new(), output: String::new(),