error[E0277]: the trait bound `dua::middleware::actix::DUAEnforcer: dua::extractor::actix_service::IntoTransform<_, dua::extractor::actix_web::app_service::AppRouting>` is not satisfied
--> src\dua\middleware\actix.rs:115:19
|
115 | .wrap(DUAEnforcer)
| ^^^^^^^^^^^ the trait `dua::extractor::actix_service::IntoTransform<_, dua::extractor::actix_web::app_service::AppRouting>` is not implemented for `dua::middleware::actix::DUAEnforcer`
I'm currently using older versions, but even tried the alpha versions (which caused other complie issues)
actix-web = { version = "1.0.9", optional = true }
actix-service = { version = "0.4.2", optional = true }
I built my own actix-web middleware (DUAEnforcer) but cannot use it in a
App::new().wrap(DUAEnforcer)
call. My code is located at https://github.com/dsietz/pbd/blob/master/src/dua/middleware/actix.rs and the testtest_add_middleware()
fails with the following error:I'm currently using older versions, but even tried the alpha versions (which caused other complie issues)
Do you have an idea what I'm doing wrong?