diff --git a/crates/future/src/lib.rs b/crates/future/src/lib.rs index f70faac..bd70191 100644 --- a/crates/future/src/lib.rs +++ b/crates/future/src/lib.rs @@ -123,7 +123,7 @@ where /// Quality of life methods for cleaner futures spawning, timeout and /// cancellation using [`CancellationToken`]. pub trait FutureExt { - type Future: Future + Send; + type Future: Future; /// Effectively wraps the future in [`tokio::time::timeout()`], returning a /// future that also allows you to run different future, in case the timeout @@ -270,8 +270,7 @@ pub trait StaticFutureExt { impl FutureExt for T where - T: Future + Send, - T::Output: Send, + T: Future, { type Future = T;