-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
std::io::Empty
that is never read from
#11400
Labels
A-lint
Area: New lints
Comments
There was also a PR to soft-deprecate |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What it does
If
Empty
is constructed yet its implementations ofRead
/BufRead
are never required, we should suggestSink
instead which conveys this purpose better.We also need to make sure some access does not require a trait outside of
std
thatSink
doesn't implement.Advantage
Drawbacks
Example
Could be written as:
The text was updated successfully, but these errors were encountered: