chore: remove cow

This commit is contained in:
Stefanuk12 2025-04-25 19:39:45 +01:00
parent faedef0c81
commit d39ee9b9e7
No known key found for this signature in database
GPG key ID: 7E19B1E4C83A2A35

View file

@ -17,7 +17,6 @@ use fs_err::tokio as fs;
use futures::TryStreamExt as _;
use std::{
borrow::Cow,
collections::{HashMap, VecDeque},
convert::Infallible,
future::{self, Future},
@ -267,7 +266,7 @@ impl Project {
}
let graph_to_download = if force {
Cow::Borrowed(&correct_deps)
correct_deps
} else {
let mut tasks = correct_deps
.into_iter()
@ -292,7 +291,7 @@ impl Project {
graph_to_download.insert(id, node);
}
Cow::Owned(graph_to_download)
graph_to_download
};
let downloaded = self