 Michael MaciasandWeijia Jiang
|
dff4ecd0e7
|
io: implement AsyncSeek for Empty (#6663)
* io: implement `AsyncSeek` for `Empty`
* io: add more tests for seeking `Empty`
This adds more tests seeking with other kinds of `SeekFrom`. It follows
the same structure as used in
rust-lang/rust@f1cd17961c.
See <https://github.com/tokio-rs/tokio/pull/6663#discussion_r1659491016>.
* io: add inline attribute to `AsyncSeek` implementations
This follows the style of the other trait implementations of `Empty`.
See <https://github.com/tokio-rs/tokio/pull/6663#discussion_r1658835942>.
---------
Co-authored-by: Weijia Jiang <[email protected]>
|
2024-07-01 09:50:49 +08:00 |
|