cargo fmt
This commit is contained in:
parent
5f05206891
commit
089bb95c4f
2 changed files with 3 additions and 10 deletions
|
@ -36,14 +36,9 @@ pub async fn get_edit(data: web::Data<AppState>, id: web::Path<String>) -> HttpR
|
||||||
.append_header(("Location", format!("{}/", ARGS.public_path)))
|
.append_header(("Location", format!("{}/", ARGS.public_path)))
|
||||||
.finish();
|
.finish();
|
||||||
}
|
}
|
||||||
return HttpResponse::Ok().content_type("text/html").body(
|
return HttpResponse::Ok()
|
||||||
EditTemplate {
|
.content_type("text/html")
|
||||||
pasta,
|
.body(EditTemplate { pasta, args: &ARGS }.render().unwrap());
|
||||||
args: &ARGS,
|
|
||||||
}
|
|
||||||
.render()
|
|
||||||
.unwrap(),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ use crate::AppState;
|
||||||
use actix_web::{get, web, HttpResponse};
|
use actix_web::{get, web, HttpResponse};
|
||||||
use askama::Template;
|
use askama::Template;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#[derive(Template)]
|
#[derive(Template)]
|
||||||
#[template(path = "qr.html", escape = "none")]
|
#[template(path = "qr.html", escape = "none")]
|
||||||
struct QRTemplate<'a> {
|
struct QRTemplate<'a> {
|
||||||
|
|
Loading…
Reference in a new issue