Skip to content

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

@mmacedoeu

Description

@mmacedoeu

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions