-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Clippy run and derive Default for Buffer #817
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
Conversation
Thanks for contributing! Unfortunately, I'm here to tell you there were the following style issues with your Pull Request:
Guidelines are available at https://github.com/hyperium/hyper/blob/master/CONTRIBUTING.md This message was auto-generated by https://gitcop.com |
@@ -28,7 +28,7 @@ use std::cmp::Ordering; | |||
/// Registry](http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) which is | |||
/// the source for this enum (with one exception, 418 I'm a teapot, which is | |||
/// inexplicably not in the register). | |||
#[derive(Debug, Hash)] | |||
#[derive(Debug, Hash, Copy, Clone)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual implementations were deliberate actually, because it's faster to compile than rustc generating the huge match statements for this big enum...
Thanks for the pull request! Sorry for the delay, I've been traveling and only have occasional computer access. These all look really good. The only refactor that gives me pause is the derives for the |
Benchmarked on nightly with precision of seconds, no change in compile times for debug or release. I suspect the improvement is due to rust-lang/rust#31414 which is in beta however. Should this wait for that change to land in stable? |
Ah, glad to see that PR. Yes, I'd probably want to wait to introduce the On Sun, Jun 12, 2016, 5:58 PM Leonardo Yvens [email protected]
|
Very well, reverted changes to |
Thank you! |
Some refactorings, most were suggested by clippy.