дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-27 21:12:34 +02:00
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.
Цей коміт міститься в:
1 джерело
ab1a4db606
коміт
fef5fd10e1
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Заблокувати користувача