Fix clippy::needless_borrow lint violations (#36444)
Release Notes: - N/A
This commit is contained in:
parent
eecf142f06
commit
9e0e233319
242 changed files with 801 additions and 821 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue