From 1856c4b57ca7ab706552e2c47f550c86e8999e7c Mon Sep 17 00:00:00 2001 From: Vypo Mouse Date: Sat, 25 Mar 2023 14:40:37 -0400 Subject: Update to rocket 0.5-rc.3 --- askama_rocket/tests/basic.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'askama_rocket/tests/basic.rs') diff --git a/askama_rocket/tests/basic.rs b/askama_rocket/tests/basic.rs index a61c188..1ded705 100644 --- a/askama_rocket/tests/basic.rs +++ b/askama_rocket/tests/basic.rs @@ -3,6 +3,7 @@ use askama::Template; use futures_lite::future::block_on; use rocket::http::{ContentType, Status}; use rocket::local::asynchronous::Client; +use rocket::Responder; #[derive(Template)] #[template(path = "hello.html")] @@ -10,6 +11,11 @@ struct HelloTemplate<'a> { name: &'a str, } +#[derive(Responder)] +struct HelloResponder<'a> { + template: HelloTemplate<'a>, +} + #[rocket::get("/")] fn hello() -> HelloTemplate<'static> { HelloTemplate { name: "world" } -- cgit