Skip to content

Commit

Permalink
fix(future): remove unnecessary trait bounds (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
xDarksome authored Dec 18, 2023
1 parent 95b9936 commit 053916f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/future/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -270,8 +270,7 @@ pub trait StaticFutureExt {

impl<T> FutureExt for T
where
T: Future + Send,
T::Output: Send,
T: Future,
{
type Future = T;

Expand Down

0 comments on commit 053916f

Please sign in to comment.