mirror of
https://github.com/actix/examples
synced 2025-06-26 17:17:42 +02:00
fmt
This commit is contained in:
@ -13,9 +13,7 @@ impl ResponseError for MyErr {}
|
||||
|
||||
#[allow(unused_must_use)] // ywrite_min causes warning: unused borrow that must be used
|
||||
#[get("/")]
|
||||
async fn index(
|
||||
query: web::Query<HashMap<String, String>>,
|
||||
) -> Result<HttpResponse, Error> {
|
||||
async fn index(query: web::Query<HashMap<String, String>>) -> Result<HttpResponse, Error> {
|
||||
// `ywrite_min` is work in progress check your templates before put in production
|
||||
// or use `ywrite_html`
|
||||
Ok(HttpResponse::Ok()
|
||||
|
Reference in New Issue
Block a user