might also need a version bump.
Thank you very much for this project, this is exactly what I was looking for! I can dig deeper if it's not just a simple minor version bump.
[dependencies]
humphrey = "^0.7.0"
humphrey_ws = "^0.5"
humphrey = { path = "../Humphrey/humphrey" }
humphrey_ws = { path = "../Humphrey/humphrey-ws" }
error[E0277]: expected a `Fn<(humphrey::http::Request, humphrey::stream::Stream, Arc<_>)>` closure, found `impl Fn(humphrey::http::request::Request, humphrey::stream::Stream, Arc<_>)`
--> src/main.rs:14:38
|
14 | .with_websocket_route("/ws", async_websocket_handler(websocket_app.connect_hook().unwrap()));
| -------------------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `Fn<(humphrey::http::Request, humphrey::stream::Stream, Arc<_>)>` closure, found `impl Fn(humphrey::http::request::Request, humphrey::stream::Stream, Arc<_>)`
| |
| required by a bound introduced by this call
|
= help: the trait `Fn<(humphrey::http::Request, humphrey::stream::Stream, Arc<_>)>` is not implemented for `impl Fn(humphrey::http::request::Request, humphrey::stream::Stream, Arc<_>)`
= note: expected a closure with arguments `(humphrey::http::request::Request, humphrey::stream::Stream, Arc<_>)`
found a closure with arguments `(humphrey::http::Request, humphrey::stream::Stream, Arc<_>)`
= note: required for `impl Fn(humphrey::http::request::Request, humphrey::stream::Stream, Arc<_>)` to implement `humphrey::app::WebsocketHandler<_>`
note: required by a bound in `App::<State>::with_websocket_route`
--> /home/grinkers/.cargo/registry/src/index.crates.io-6f17d22bba15001f/humphrey-0.7.0/src/app.rs:364:12
|
362 | pub fn with_websocket_route<T>(mut self, route: &str, handler: T) -> Self
| -------------------- required by a bound in this associated function
363 | where
364 | T: WebsocketHandler<State> + 'static,
| ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `App::<State>::with_websocket_route`
```