diff --git a/tokio/src/runtime/task/harness.rs b/tokio/src/runtime/task/harness.rs index 51ccb0cb8..0dee88f6b 100644 --- a/tokio/src/runtime/task/harness.rs +++ b/tokio/src/runtime/task/harness.rs @@ -638,10 +638,7 @@ unsafe fn poll_future( self.core.drop_future_or_output(self.header); } } - let guard = Guard { - core, - header, - }; + let guard = Guard { core, header }; // Safety: the caller guarantees the mutual-exclusion requirements of // `Core::poll` and that `header` identifies this live task allocation. let res = unsafe { guard.core.poll(header, cx) };