Skip to content

Commit

Permalink
Rollup merge of #87565 - ibraheemdev:patch-7, r=scottmcm
Browse files Browse the repository at this point in the history
Use backticks when referring to `core::future::Ready` in panic message
  • Loading branch information
JohnTitor authored Jul 28, 2021
2 parents 65003c6 + 2d8b6e3 commit 6c4888a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/future/ready.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
}

Expand Down

0 comments on commit 6c4888a

Please sign in to comment.