fix(api): use question mark for optional tool call names

Resolves clippy::question_mark in openai_compat.rs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-04-02 15:00:20 +09:00
parent 7976bf994c
commit 1e8e152148
@@ -506,9 +506,7 @@ impl ToolCallState {
}
fn start_event(&self) -> Option<ContentBlockStartEvent> {
let Some(name) = self.name.clone() else {
return None;
};
let name = self.name.clone()?;
let id = self
.id
.clone()