diff --git a/juniper_subscriptions/src/lib.rs b/juniper_subscriptions/src/lib.rs index 789a13a0..89a32f45 100644 --- a/juniper_subscriptions/src/lib.rs +++ b/juniper_subscriptions/src/lib.rs @@ -187,8 +187,8 @@ where ready_vec.push(None); } - let stream = futures::stream::poll_fn( - move |mut ctx| -> Poll>> { + let stream = + futures::stream::poll_fn(move |mut ctx| -> Poll>> { let mut obj_iterator = object.iter_mut(); // Due to having to modify `ready_vec` contents (by-move pattern) @@ -246,8 +246,7 @@ where } else { Poll::Pending } - }, - ); + }); Box::pin(stream) }