Skip to content

Commit 59b7727

Browse files
committed
chore: Fix clippy warnings
1 parent 363fe4d commit 59b7727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agent/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl Agent {
202202
agent_builder
203203
}
204204

205-
async fn add_mcp_tools<'a, M>(
205+
async fn add_mcp_tools<M>(
206206
mut agent_builder: AgentBuilder<M>,
207207
mcp: Option<&McpConfig>,
208208
) -> Result<(AgentBuilder<M>, String)>
@@ -265,7 +265,7 @@ impl Agent {
265265

266266
if let Some(system_prompt_template) = &server_config.system_prompt {
267267
if let Some(context_tool) = &server_config.context_tool {
268-
let result = mcp_client.call_tool(&context_tool, None).await?;
268+
let result = mcp_client.call_tool(context_tool, None).await?;
269269
if result.is_error.is_none_or(|is_error| !is_error) {
270270
let txt = result
271271
.content

0 commit comments

Comments
 (0)