cargo fmt

This commit is contained in:
figsoda 2022-11-08 16:37:49 -05:00
parent 5f05206891
commit 089bb95c4f
2 changed files with 3 additions and 10 deletions

View file

@ -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)))
.finish();
}
return HttpResponse::Ok().content_type("text/html").body(
EditTemplate {
pasta,
args: &ARGS,
}
.render()
.unwrap(),
);
return HttpResponse::Ok()
.content_type("text/html")
.body(EditTemplate { pasta, args: &ARGS }.render().unwrap());
}
}

View file

@ -8,8 +8,6 @@ use crate::AppState;
use actix_web::{get, web, HttpResponse};
use askama::Template;
#[derive(Template)]
#[template(path = "qr.html", escape = "none")]
struct QRTemplate<'a> {