Skip to content

Commit

Permalink
chore: Fix nightly clippy warning
Browse files Browse the repository at this point in the history
Signed-off-by: John Nunley <[email protected]>
  • Loading branch information
notgull committed May 19, 2024
1 parent a3a4941 commit bd93e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sources/futures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ impl<T> Scheduler<T> {
/// Sends the given future to the executor associated to this scheduler
///
/// Returns an error if the the executor not longer exists.
pub fn schedule<Fut: 'static>(&self, future: Fut) -> Result<(), ExecutorDestroyed>
pub fn schedule<Fut>(&self, future: Fut) -> Result<(), ExecutorDestroyed>
where
Fut: Future<Output = T>,
Fut: Future<Output = T> + 'static,
T: 'static,
{
/// Store this future's result in the executor.
Expand Down

0 comments on commit bd93e57

Please sign in to comment.