From fef5fd10e179fc59fcd1ecf9ffecbed4e5e01831 Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Tue, 17 Nov 2026 00:29:11 +0800 Subject: [PATCH] chore(agents): drop a needless borrow that clippy rejects crates/ide-agent/src/lib.rs passed `&prompt` where `prompt` is already a reference, which `cargo clippy -- -D warnings` (needless_borrow) rejects since #3444. --- crates/ide-agent/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ide-agent/src/lib.rs b/crates/ide-agent/src/lib.rs index 7879bd2e0..2f9b1c2fc 100644 --- a/crates/ide-agent/src/lib.rs +++ b/crates/ide-agent/src/lib.rs @@ -2039,7 +2039,7 @@ impl Task { if !prompt.images.is_empty() && !live.capabilities.images { return Err(Failure::from("This agent can't read images.".to_owned())); } - content = self.content(&live, &prompt).await; + content = self.content(&live, prompt).await; result = live .peer .request("session/prompt", json!({ "sessionId": live.session, "prompt": content }), None)