Closed Sushisource closed 5 years ago
What error do you get?
The error:
error[E0277]: the trait bound `web_server::auth::JwtAuth: actix_service::transform::IntoTransform<_,
actix_web::app_service::AppRouting>` is not satisfied
--> ap-api/src/main.rs:109:20
|
109 | App::new().wrap(jwt_auther).configure(|c| {
| ^^^^ the trait `actix_service::transform::IntoTransform<_, actix_web::app_service::AppRouting>` is not implemented for `web_server::auth::JwtAuth`
error: aborting due to previous error
Strange. Is your code available anywhere? I’d like to try myself
i need reproducible example, re-open if you get one
It's very unclear to me why, but following the example in https://actix.rs/docs/middleware/
and implementing
Transform
andService
myself, thewrap
call fails withIntoTransform
not being imeplemented.My code -- the
Error
type is not included here, but shouldn't be relevant as far as I can tell. I've confirmed there's no version mismatch weirdness going on. Everything is using consistent versions of actix-web and actix-service.