-
Notifications
You must be signed in to change notification settings - Fork 675
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
Clippy cleanup #818
Clippy cleanup #818
Conversation
2cdda7b
to
222c20d
Compare
@asomers I'd like to merge this, any chance to look over the commit I mentioned above? |
I should be able to get to it sometime tonight. |
I think the reason for the |
The commit message for 263ed2c is incorrect. It should say "elide" or "remove implied" instead of "remove elided". |
@asomers The tests still seem to pass, do you think the tests are correct to begin with? |
Once I finish converting aio from using |
Yes, the tests are correct. They don't rely on |
Apart from that one commit message, everything looks acceptable to me. Just fix that, then bors +asomers . |
222c20d
to
d2e936b
Compare
Several tests make the assumption that all data is written, which is not guaranteed with write(), so use write_all() instead.
A little easier to read
As of Rust 1.17 'static lifetimes are implied when declaring consts.
It's unclear why these were static in the first place.
Makes it more clear what's being cloned
Looks like a copy/paste error might have caused this
Reads a little bit easier
More Rusty to use &X and &mut X where X is a container type.
d2e936b
to
8db68be
Compare
bors r+ asomers |
Various fixes for errors and warnings pointed out by clippy.