From 18fff69946773b86e522b8a12e4de6c5aad267f7 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 22 Sep 2021 15:35:07 -0400 Subject: [PATCH] refactor: simplify FetchFuture (#12185) No need for static lifetime --- cli/specifier_handler.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/cli/specifier_handler.rs b/cli/specifier_handler.rs index 9f1162fee7148..112fac9005f65 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; -pub type FetchFuture = Pin< - Box< - (dyn Future> - + 'static - + Send), - >, ->; +type FetchFutureOutput = Result; +pub type FetchFuture = Pin + Send>>; /// A group of errors that represent errors that can occur with an /// an implementation of `SpecifierHandler`.