Mark Queue::next_complete Future Unpin + Send + Sync

This commit is contained in:
Kevin Mehall 2024-01-14 21:45:52 -07:00
parent d8b492f102
commit d19b0403f2

View file

@ -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<Output = Completion<R::Response>> + 'a {
pub fn next_complete<'a>(&'a mut self) -> impl Future<Output = Completion<R::Response>> + Unpin + Send + Sync + 'a {
poll_fn(|cx| {
let res = self
.pending