diff --git a/tokio/src/fs/file.rs b/tokio/src/fs/file.rs index f3bc98546..c44196b3e 100644 --- a/tokio/src/fs/file.rs +++ b/tokio/src/fs/file.rs @@ -757,6 +757,7 @@ impl AsyncWrite for File { } fn poll_shutdown(self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll> { + // Flush is a noop for files so it's fine not to call it. Poll::Ready(Ok(())) } }