mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
reduce minijinja boilerplate
This commit is contained in:
@ -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()
|
||||
}),
|
||||
)
|
||||
})
|
||||
|
Reference in New Issue
Block a user