diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2021-09-22 15:35:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 15:35:07 -0400 |
commit | 18fff69946773b86e522b8a12e4de6c5aad267f7 (patch) | |
tree | e66d22e51d874763cea4ffcaf40e5ca23c20df25 /cli/specifier_handler.rs | |
parent | 6decc4dd38f7066c9fc51f45c3151fe4c08bdd77 (diff) |
refactor: simplify FetchFuture (#12185)
No need for static lifetime
Diffstat (limited to 'cli/specifier_handler.rs')
-rw-r--r-- | cli/specifier_handler.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cli/specifier_handler.rs b/cli/specifier_handler.rs index 9f1162fee..112fac900 100644 --- a/cli/specifier_handler.rs +++ b/cli/specifier_handler.rs @@ -24,13 +24,8 @@ use std::pin::Pin; use std::sync::Arc; pub type DependencyMap = HashMap<String, Dependency>; -pub type FetchFuture = Pin< - Box< - (dyn Future<Output = Result<CachedModule, (ModuleSpecifier, AnyError)>> - + 'static - + Send), - >, ->; +type FetchFutureOutput = Result<CachedModule, (ModuleSpecifier, AnyError)>; +pub type FetchFuture = Pin<Box<dyn Future<Output = FetchFutureOutput> + Send>>; /// A group of errors that represent errors that can occur with an /// an implementation of `SpecifierHandler`. |