Skip to content

Instantly share code, notes, and snippets.

@jcrossley3
Created January 10, 2022 23:28
Show Gist options
  • Save jcrossley3/31d0d04f3514619db2557c86c43402c9 to your computer and use it in GitHub Desktop.
Save jcrossley3/31d0d04f3514619db2557c86c43402c9 to your computer and use it in GitHub Desktop.
Compiling drogue-cloud-authentication-service v0.9.0 (/home/jim/src/drogue-iot/drogue-cloud/authentication-service)
error[E0271]: type mismatch resolving `<HttpAuthentication<BearerAuth, [closure@/home/jim/src/drogue-iot/drogue-cloud/service-common/src/auth/service/mod.rs:44:68: 44:142]> as Transform<actix_web::scope::ScopeService, ServiceRequest>>::Response == ServiceResponse`
--> authentication-service/src/lib.rs:53:22
|
53 | .wrap(actix_web::middleware::Condition::new($enable_auth, $auth))
| ^^^^ expected enum `EitherBody`, found struct `BoxBody`
...
87 | app!(data, max_json_payload_size, enable_auth, auth)
| ---------------------------------------------------- in this macro invocation
|
= note: expected struct `ServiceResponse<EitherBody<_>>`
found struct `ServiceResponse<BoxBody>`
= note: required because of the requirements on the impl of `Transform<actix_web::scope::ScopeService, ServiceRequest>` for `actix_web::middleware::Condition<HttpAuthentication<BearerAuth, [closure@/home/jim/src/drogue-iot/drogue-cloud/service-common/src/auth/service/mod.rs:44:68: 44:142]>>`
= note: this error originates in the macro `app` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0271`.
error: could not compile `drogue-cloud-authentication-service` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
cargo-test exited abnormally with code 101 at Mon Jan 10 18:13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment