Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions crates/fbuild-packages-fetch/src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async fn get_with_retry_using(client: &reqwest::Client, url: &str) -> Result<Vec
pub async fn download_file_with_progress(
url: &str,
dest_dir: &Path,
on_progress: &mut dyn FnMut(&DownloadProgress),
on_progress: &mut (dyn FnMut(&DownloadProgress) + Send),
) -> Result<PathBuf> {
download_file_with_progress_using(http::client(), url, dest_dir, on_progress).await?;
let filename = url.rsplit('/').next().unwrap_or("download");
Expand All @@ -271,7 +271,7 @@ async fn download_file_with_progress_using(
client: &reqwest::Client,
url: &str,
dest_dir: &Path,
on_progress: &mut dyn FnMut(&DownloadProgress),
on_progress: &mut (dyn FnMut(&DownloadProgress) + Send),
) -> Result<()> {
download_file_with_progress_timed(client, url, dest_dir, on_progress, RetryTiming::PRODUCTION)
.await
Expand All @@ -283,7 +283,7 @@ async fn download_file_with_progress_timed(
client: &reqwest::Client,
url: &str,
dest_dir: &Path,
on_progress: &mut dyn FnMut(&DownloadProgress),
on_progress: &mut (dyn FnMut(&DownloadProgress) + Send),
timing: RetryTiming,
) -> Result<()> {
let filename = url.rsplit('/').next().unwrap_or("download").to_string();
Expand Down
Loading