summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/file_fetcher.rs')
-rw-r--r--cli/file_fetcher.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/cli/file_fetcher.rs b/cli/file_fetcher.rs
index 86c0ac966..52e9cc800 100644
--- a/cli/file_fetcher.rs
+++ b/cli/file_fetcher.rs
@@ -364,25 +364,25 @@ impl FileFetcher {
specifier: &ModuleSpecifier,
permissions: &Permissions,
redirect_limit: i64,
- ) -> Pin<Box<dyn Future<Output = Result<File, AnyError>>>> {
+ ) -> Pin<Box<dyn Future<Output = Result<File, AnyError>> + Send>> {
debug!("FileFetcher::fetch_remote() - specifier: {}", specifier);
if redirect_limit < 0 {
return futures::future::err(custom_error("Http", "Too many redirects."))
- .boxed_local();
+ .boxed();
}
if let Err(err) = permissions.check_specifier(specifier) {
- return futures::future::err(err).boxed_local();
+ return futures::future::err(err).boxed();
}
if self.cache_setting.should_use(specifier) {
match self.fetch_cached(specifier, redirect_limit) {
Ok(Some(file)) => {
- return futures::future::ok(file).boxed_local();
+ return futures::future::ok(file).boxed();
}
Ok(None) => {}
Err(err) => {
- return futures::future::err(err).boxed_local();
+ return futures::future::err(err).boxed();
}
}
}
@@ -395,7 +395,7 @@ impl FileFetcher {
specifier
),
))
- .boxed_local();
+ .boxed();
}
info!("{} {}", colors::green("Download"), specifier);
@@ -436,7 +436,7 @@ impl FileFetcher {
}
}
}
- .boxed_local()
+ .boxed()
}
/// Fetch a source file and asynchronously return it.