Skip to content

Export BufReadExt and SeekExt from async_std::io #1029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

joshtriplett
Copy link
Contributor

async_std::io exports Read, ReadExt, Write, WriteExt,
BufRead, and Seek. But it does not export BufReadExt and
SeekExt; those only appear in async_std::io::prelude.

Export both BufReadExt and SeekExt from async_std::io. This makes
it easier for code not using the prelude to import all of the I/O traits
it uses from the same module.

`async_std::io` exports `Read`, `ReadExt`, `Write`, `WriteExt`,
`BufRead`, and `Seek`. But it does not export `BufReadExt` and
`SeekExt`; those only appear in `async_std::io::prelude`.

Export both `BufReadExt` and `SeekExt` from `async_std::io`. This makes
it easier for code not using the prelude to import all of the I/O traits
it uses from the same module.
@joshtriplett joshtriplett merged commit 996ff48 into async-rs:main Jun 20, 2022
@joshtriplett joshtriplett deleted the seek-ext branch June 20, 2022 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants