You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to make the handler return impl Template (or anything like Result<impl Template>, Box<Future<impl Template, Error>>, etc.), I get this error:
error[E0277]: the trait bound `impl askama::Template: actix_web::handler::Responder` is not satisfied
--> src/main.rs:15:42
|
15 | App::new().resource("/", |r| r.get().f(index));
| ^ the trait `actix_web::handler::Responder` is not implemented for `impl askama::Template`
The text was updated successfully, but these errors were encountered:
I'm experimenting with askama and actix-web, and noticed the
Responder
trait derivation sometimes doesn't work. Here is an example project:Cargo.toml:
src/main.rs:
If I try to make the handler return
impl Template
(or anything likeResult<impl Template>
,Box<Future<impl Template, Error>>
, etc.), I get this error:The text was updated successfully, but these errors were encountered: