Skip to content

Commit

Permalink
Use backticks when referring to core::future::Ready in panic message
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheemdev committed Jul 28, 2021
1 parent a28109a commit 2d8b6e3
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 2d8b6e3

Please sign in to comment.