docs: improved warning location

This commit is contained in:
Greg Johnston 2024-07-16 14:13:55 -04:00
parent 93e6456e19
commit efb699a319

View file

@ -92,6 +92,7 @@ where
{
type Output = T;
#[track_caller]
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> {
let waker = cx.waker();
self.source.track();