From d19b0403f2379ed005f08f3ef40cb340ba8f487a Mon Sep 17 00:00:00 2001 From: Kevin Mehall Date: Sun, 14 Jan 2024 21:45:52 -0700 Subject: [PATCH] Mark Queue::next_complete Future Unpin + Send + Sync --- src/transfer/queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transfer/queue.rs b/src/transfer/queue.rs index 4a5f6dc..113b273 100644 --- a/src/transfer/queue.rs +++ b/src/transfer/queue.rs @@ -164,7 +164,7 @@ where /// side effects, enabling its use in `select!{}` or similar. /// /// Panics if there are no transfers pending. - pub fn next_complete<'a>(&'a mut self) -> impl Future> + 'a { + pub fn next_complete<'a>(&'a mut self) -> impl Future> + Unpin + Send + Sync + 'a { poll_fn(|cx| { let res = self .pending