Fix formatting of 'juniper_subscriptions' crate

This commit is contained in:
tyranron 2020-06-23 13:38:30 +03:00
parent 3cd4cbb0b8
commit 5b4f6fca39
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0

View file

@ -187,8 +187,8 @@ where
ready_vec.push(None); ready_vec.push(None);
} }
let stream = futures::stream::poll_fn( let stream =
move |mut ctx| -> Poll<Option<GraphQLResponse<'a, S>>> { futures::stream::poll_fn(move |mut ctx| -> Poll<Option<GraphQLResponse<'a, S>>> {
let mut obj_iterator = object.iter_mut(); let mut obj_iterator = object.iter_mut();
// Due to having to modify `ready_vec` contents (by-move pattern) // Due to having to modify `ready_vec` contents (by-move pattern)
@ -246,8 +246,7 @@ where
} else { } else {
Poll::Pending Poll::Pending
} }
}, });
);
Box::pin(stream) Box::pin(stream)
} }