1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

reduce minijinja boilerplate

This commit is contained in:
Rob Ede
2022-10-16 21:36:23 +01:00
parent 8a22559cac
commit bf0386ade7
5 changed files with 62 additions and 35 deletions

View File

@ -32,7 +32,7 @@ async fn main() -> std::io::Result<()> {
"/",
web::to(|data: web::Data<usize>| async move {
assert_eq!(**data, 123);
HttpResponse::NoContent()
HttpResponse::NoContent().finish()
}),
)
})