felipenoris / hyper-reverse-proxy

A simple reverse proxy for use with Hyper and Tokio
Apache License 2.0
181 stars 63 forks source link

Example in readme fails to compile #14

Closed Venryx closed 2 years ago

Venryx commented 2 years ago

I get the following error, when copying the readme's example verbatim into an .rs file:

the value of the associated type `Output` (from trait `futures_util::Future`) must be specifiedrustcE0191
gql_post.rs(6, 19): specify the associated type: `Future<Item=Response<Body>, Error=hyper::Error, Output = Type>`
trait objects must include the `dyn` keywordrustcE0782
gql_post.rs(6, 19): add `dyn` keyword before this trait: `dyn `

Screenshot:

felipenoris commented 2 years ago

Fixed on release v0.5