From 1be5acd1fa1234ad33b5ecaee0f7c62fc253e38c Mon Sep 17 00:00:00 2001 From: Darksome Date: Mon, 18 Dec 2023 13:46:17 +0000 Subject: [PATCH 1/2] fix(future): remove unnecessary trait bounds --- crates/future/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/future/src/lib.rs b/crates/future/src/lib.rs index f70faac..203f983 100644 --- a/crates/future/src/lib.rs +++ b/crates/future/src/lib.rs @@ -270,8 +270,7 @@ pub trait StaticFutureExt { impl FutureExt for T where - T: Future + Send, - T::Output: Send, + T: Future, { type Future = T; From 7f394585a5739f56a24dbf0263b195e9f93be94e Mon Sep 17 00:00:00 2001 From: Darksome Date: Mon, 18 Dec 2023 13:57:55 +0000 Subject: [PATCH 2/2] fix: remove another bound --- crates/future/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/future/src/lib.rs b/crates/future/src/lib.rs index 203f983..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