Closed zaeleus closed 3 months ago
While porting a test from std:io to tokio::io, I discovered AsyncSeek is not implemented for tokio::io::Empty. This was unexpected, as std::io::Seek was implemented for std::io::Empty in Rust 1.51.0 (2021-03-25).
std:io
tokio::io
AsyncSeek
tokio::io::Empty
std::io::Seek
std::io::Empty
This implementation mimics the behavior of the Seek implementation for std::io::Empty.
Seek
Motivation
While porting a test from
std:io
totokio::io
, I discoveredAsyncSeek
is not implemented fortokio::io::Empty
. This was unexpected, asstd::io::Seek
was implemented forstd::io::Empty
in Rust 1.51.0 (2021-03-25).Solution
This implementation mimics the behavior of the
Seek
implementation forstd::io::Empty
.