mirror of
https://github.com/ultraworkers/claw-code-parity.git
synced 2026-04-23 21:26:03 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user