Skip to content

Commit 6f2d5a2

Browse files
committed
fixed cargo clippy error
1 parent a592849 commit 6f2d5a2

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/llm.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,16 +206,13 @@ impl TryFrom<Vec<u8>> for LlmOptions {
206206
.filter_map(|v| v.as_str().map(|s| s.to_string()))
207207
.collect(),
208208
)
209-
} else if let Some(s) = json["tools_sse_urls"].as_str() {
210-
// Handle comma-separated string format - Browser runtime
211-
Some(s.split(',').map(|s| s.trim().to_string()).collect())
212209
} else {
213-
None
210+
json["tools_sse_urls"].as_str().map(|s| s.split(',').map(|s| s.trim().to_string()).collect())
214211
};
215212

216213
Ok(LlmOptions {
217-
system_message: system_message,
218-
tools_sse_urls: tools_sse_urls,
214+
system_message,
215+
tools_sse_urls,
219216
temperature: json["temperature"].as_f32(),
220217
top_p: json["top_p"].as_f32(),
221218
})

0 commit comments

Comments
 (0)