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

@ -324,7 +324,7 @@ impl SummaryIndex {
) -> Vec<(Arc<Path>, Option<MTime>)> {
let entry_db_key = db_key_for_path(&entry.path);
match digest_db.get(&txn, &entry_db_key) {
match digest_db.get(txn, &entry_db_key) {
Ok(opt_saved_digest) => {
// The file path is the same, but the mtime is different. (Or there was no mtime.)
// It needs updating, so add it to the backlog! Then, if the backlog is full, drain it and summarize its contents.
@ -575,7 +575,7 @@ impl SummaryIndex {
let code_len = code.len();
cx.spawn(async move |cx| {
let stream = model.stream_completion(request, &cx);
let stream = model.stream_completion(request, cx);
cx.background_spawn(async move {
let answer: String = stream
.await?