From 6e8c799af5d68ae25e8f66233b204113edb06b8f Mon Sep 17 00:00:00 2001 From: harald Date: Wed, 25 Feb 2026 16:49:47 +0100 Subject: [PATCH] chore: apply cargo fmt formatting Co-Authored-By: Claude Opus 4.6 --- src/providers/compatible.rs | 5 ++++- src/security/policy.rs | 5 ++++- src/tools/shell.rs | 6 +++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/providers/compatible.rs b/src/providers/compatible.rs index 074ee45..40e0d94 100644 --- a/src/providers/compatible.rs +++ b/src/providers/compatible.rs @@ -1054,7 +1054,10 @@ impl Provider for OpenAiCompatibleProvider { let url = self.chat_completions_url(); 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() .await?; diff --git a/src/security/policy.rs b/src/security/policy.rs index 3762fcf..d7a4e6f 100644 --- a/src/security/policy.rs +++ b/src/security/policy.rs @@ -334,7 +334,10 @@ impl SecurityPolicy { if risk == CommandRiskLevel::High { 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()); } if self.autonomy == AutonomyLevel::Supervised && !approved { diff --git a/src/tools/shell.rs b/src/tools/shell.rs index 0b5e222..bafbce9 100644 --- a/src/tools/shell.rs +++ b/src/tools/shell.rs @@ -170,7 +170,11 @@ impl Tool for ShellTool { }) } 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 { success: false, output: String::new(),