From d39ee9b9e7f655e2fbbbe31f4f4b72f48ec6aeeb Mon Sep 17 00:00:00 2001 From: Stefanuk12 <42220813+Stefanuk12@users.noreply.github.com> Date: Fri, 25 Apr 2025 19:39:45 +0100 Subject: [PATCH] chore: remove cow --- src/download_and_link.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/download_and_link.rs b/src/download_and_link.rs index 704801f..f9e4831 100644 --- a/src/download_and_link.rs +++ b/src/download_and_link.rs @@ -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