mirror of
https://github.com/ultraworkers/claw-code-parity.git
synced 2026-06-24 10:51:10 +00: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:
parent
7976bf994c
commit
1e8e152148
@ -506,9 +506,7 @@ impl ToolCallState {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn start_event(&self) -> Option<ContentBlockStartEvent> {
|
fn start_event(&self) -> Option<ContentBlockStartEvent> {
|
||||||
let Some(name) = self.name.clone() else {
|
let name = self.name.clone()?;
|
||||||
return None;
|
|
||||||
};
|
|
||||||
let id = self
|
let id = self
|
||||||
.id
|
.id
|
||||||
.clone()
|
.clone()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user