diff --git a/staging/vhost-device-video/src/stream.rs b/staging/vhost-device-video/src/stream.rs index ab8265c..4fdd59c 100644 --- a/staging/vhost-device-video/src/stream.rs +++ b/staging/vhost-device-video/src/stream.rs @@ -105,7 +105,7 @@ impl Future for Resource { fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { if self.is_ready() { - return Poll::Ready(self.buffer_data.read().unwrap().clone()); + Poll::Ready(self.buffer_data.read().unwrap().clone()) } else { self.state.write().unwrap().waker = Some(cx.waker().clone()); Poll::Pending