Use backticks when referring to core::future::Ready in panic message

This commit is contained in:
Ibraheem Ahmed 2021-07-28 16:22:34 -04:00 committed by GitHub
parent a28109a767
commit 2d8b6e3476
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ impl<T> Future for Ready<T> {
#[inline]
fn poll(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<T> {
Poll::Ready(self.0.take().expect("Ready polled after completion"))
Poll::Ready(self.0.take().expect("`Ready` polled after completion"))
}
}