mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
fmt
This commit is contained in:
@@ -638,10 +638,7 @@ unsafe fn poll_future<T: Future, S: Schedule>(
|
|||||||
self.core.drop_future_or_output(self.header);
|
self.core.drop_future_or_output(self.header);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let guard = Guard {
|
let guard = Guard { core, header };
|
||||||
core,
|
|
||||||
header,
|
|
||||||
};
|
|
||||||
// Safety: the caller guarantees the mutual-exclusion requirements of
|
// Safety: the caller guarantees the mutual-exclusion requirements of
|
||||||
// `Core::poll` and that `header` identifies this live task allocation.
|
// `Core::poll` and that `header` identifies this live task allocation.
|
||||||
let res = unsafe { guard.core.poll(header, cx) };
|
let res = unsafe { guard.core.poll(header, cx) };
|
||||||
|
|||||||
Reference in New Issue
Block a user