Skip to content
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

the trait hyper::header::HeaderFormat is not implemented #1

Open
mmacedoeu opened this issue Dec 14, 2015 · 2 comments
Open

the trait hyper::header::HeaderFormat is not implemented #1

mmacedoeu opened this issue Dec 14, 2015 · 2 comments

Comments

@mmacedoeu
Copy link

Trying to compile with stable, beta or nightly gives me this error:

src/main.rs:84:56: 84:86 error: the trait `hyper::header::Header` is not implemented for the type `hyper::header::common::authorization::Authorization<hyper::header::common::authorization::Bearer>` [E0277]
src/main.rs:84         let auth_header = match request.origin.headers.get::<Authorization<Bearer>>() {
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:84:56: 84:86 help: run `rustc --explain E0277` to see a detailed explanation
src/main.rs:84:56: 84:86 error: the trait `hyper::header::HeaderFormat` is not implemented for the type `hyper::header::common::authorization::Authorization<hyper::header::common::authorization::Bearer>` [E0277]
src/main.rs:84         let auth_header = match request.origin.headers.get::<Authorization<Bearer>>() {
                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/main.rs:84:56: 84:86 help: run `rustc --explain E0277` to see a detailed explanation
error: aborting due to 2 previous errors
Could not compile `rust-users`.
@pwrdwnsys
Copy link

Same for me. I tried explicitly setting different versions of nickel and hyper in the Cargo.toml, but no change.

@shepmaster
Copy link

This question was cross-posted to Stack Overflow.

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

No branches or pull requests

3 participants