Fix clippy::needless_borrow lint violations (#36444)

Release Notes:

- N/A
This commit is contained in:
Piotr Osiewicz 2025-08-18 23:54:35 +02:00 committed by GitHub
parent eecf142f06
commit 9e0e233319
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
242 changed files with 801 additions and 821 deletions

View file

@ -173,7 +173,7 @@ impl UserMessage {
&mut symbol_context,
"\n{}",
MarkdownCodeBlock {
tag: &codeblock_tag(&abs_path, None),
tag: &codeblock_tag(abs_path, None),
text: &content.to_string(),
}
)
@ -189,8 +189,8 @@ impl UserMessage {
&mut rules_context,
"\n{}",
MarkdownCodeBlock {
tag: &codeblock_tag(&path, Some(line_range)),
text: &content
tag: &codeblock_tag(path, Some(line_range)),
text: content
}
)
.ok();
@ -207,7 +207,7 @@ impl UserMessage {
"\n{}",
MarkdownCodeBlock {
tag: "",
text: &content
text: content
}
)
.ok();
@ -1048,7 +1048,7 @@ impl Thread {
tools,
tool_choice: None,
stop: Vec::new(),
temperature: AgentSettings::temperature_for_model(&model, cx),
temperature: AgentSettings::temperature_for_model(model, cx),
thinking_allowed: true,
};