Mark Queue::next_complete Future Unpin + Send + Sync
This commit is contained in:
parent
d8b492f102
commit
d19b0403f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue