Skip to content

Commit f8bf3dd

Browse files
pensoclaude
andcommitted
style: rustfmt line wrapping in web_search.rs
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent d6baa0a commit f8bf3dd

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

crates/tools/src/web_search.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ impl WebSearchTool {
211211
.get(&url)
212212
.header("Accept", "application/json")
213213
.header("Accept-Encoding", "gzip")
214-
.header("X-Subscription-Token", self.api_key.expose_secret().as_str());
214+
.header(
215+
"X-Subscription-Token",
216+
self.api_key.expose_secret().as_str(),
217+
);
215218
if let Some(lang) = accept_language {
216219
req = req.header("Accept-Language", lang);
217220
}
@@ -269,7 +272,10 @@ impl WebSearchTool {
269272

270273
let resp = client
271274
.post(format!("{base_url}/chat/completions"))
272-
.header("Authorization", format!("Bearer {}", self.api_key.expose_secret()))
275+
.header(
276+
"Authorization",
277+
format!("Bearer {}", self.api_key.expose_secret()),
278+
)
273279
.json(&body)
274280
.send()
275281
.await?;

0 commit comments

Comments
 (0)