From 2d8b6e34765994a4b0d3bc68a0ed950a16083baa Mon Sep 17 00:00:00 2001 From: Ibraheem Ahmed Date: Wed, 28 Jul 2021 16:22:34 -0400 Subject: [PATCH] Use backticks when referring to `core::future::Ready` in panic message --- library/core/src/future/ready.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/future/ready.rs b/library/core/src/future/ready.rs index b0c7fbb1d7a76..cc905d288f9e0 100644 --- a/library/core/src/future/ready.rs +++ b/library/core/src/future/ready.rs @@ -20,7 +20,7 @@ impl Future for Ready { #[inline] fn poll(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll { - Poll::Ready(self.0.take().expect("Ready polled after completion")) + Poll::Ready(self.0.take().expect("`Ready` polled after completion")) } }