Fix view image output polling compile error

function_call_output already returns an owned JSON value, so the remote-routing wait helper should return it directly instead of calling cloned().

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
starr-openai
2026-05-08 17:26:26 -07:00
parent 15ad5d2d2b
commit 07abb073d2

View File

@@ -73,7 +73,7 @@ async fn wait_for_function_call_output(
if let Some(output) = response_mock
.requests()
.iter()
.find_map(|request| request.function_call_output(call_id).cloned())
.find_map(|request| request.function_call_output(call_id))
{
return output;
}