-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
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`.Metadata
Metadata
Assignees
Labels
No labels