mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-05-04 10:33:47 +01:00
chore: remove cow
This commit is contained in:
parent
faedef0c81
commit
d39ee9b9e7
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue