Skip to content

Commit c680acf

Browse files
enriquephlclaude
andcommitted
chore: clippy fixes for 0.1.2
- #[allow(clippy::too_many_arguments)] on OpenRouterClient::call_once (8 args after audit-passthrough plumbing; refactor would distort the request struct shape for a single-call-site lint nudge — not worth it) - `parsed.choices.iter().next()` → `.first()` per clippy::iter_next_slice Both surfaced by CI's `cargo clippy --workspace --all-targets -- -D warnings` on the v0.1.2 bump commit; local `cargo build` doesn't gate on warnings. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f413378 commit c680acf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/eros-engine-llm/src/openrouter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ impl OpenRouterClient {
201201
}
202202
}
203203

204+
#[allow(clippy::too_many_arguments)]
204205
async fn call_once(
205206
&self,
206207
model: &str,
@@ -242,8 +243,7 @@ impl OpenRouterClient {
242243
let parsed: WireResponse = resp.json().await?;
243244
let raw = parsed
244245
.choices
245-
.iter()
246-
.next()
246+
.first()
247247
.and_then(|c| c.message.content.clone())
248248
.unwrap_or_default();
249249
Ok(ChatResponse {

0 commit comments

Comments
 (0)