-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: rustup #404
fix: rustup #404
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 |
Amended commit message to make gitcop happy. |
Thanks! I wonder, if slice_patterns aren't going to be stable for beta/1.0, On Sun, Mar 29, 2015, 9:18 AM Florian Hartwig [email protected]
|
rust-lang/rust#23121 says that they hope to have it ready for the beta release, but I'm not sure if that still applies. I can re-write the function to avoid slice patterns if you like. |
With beta this week, those comments don't assure me. If you could remove On Sun, Mar 29, 2015, 9:57 AM Florian Hartwig [email protected]
|
* remove slice pattern * add `Reflect` trait bounds where necessary
Ok, slice patterns are gone. Tests pass for me, travis seems to have trouble with github today. |
@@ -1,6 +1,7 @@ | |||
use std::fmt; | |||
use std::str::{FromStr, from_utf8}; | |||
use std::ops::{Deref, DerefMut}; | |||
use std::marker::Reflect; |
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.
Reflect shouldn't be needed in this file as far as I can tell. What error comes up if you remove these bounds?
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.
I see, since our Header traits should require Reflect.
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.
error: the trait `core::marker::Reflect` is not implemented for the type `S` [E0277]
(in lines 26 and 47)
The Header downcasting stuff all needs |
According to this the bound should be |
@Ryman you're right. The existing |
Reflect
trait bounds where necessary