chore: update actix-* deps

This commit is contained in:
realaravinth
2022-05-07 16:10:14 +05:30
parent 6d6b494c6f
commit 91c6f77cab
16 changed files with 1101 additions and 1006 deletions

View File

@@ -42,5 +42,5 @@ lazy_static! {
pub async fn login() -> impl Responder {
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&*INDEX)
.body(&**INDEX)
}

View File

@@ -39,5 +39,5 @@ lazy_static! {
pub async fn join() -> impl Responder {
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&*INDEX)
.body(&**INDEX)
}

View File

@@ -56,11 +56,11 @@ async fn error(path: web::Path<usize>) -> impl Responder {
let resp = match path.into_inner() {
500 => HttpResponse::InternalServerError()
.content_type("text/html; charset=utf-8")
.body(&*INTERNAL_SERVER_ERROR_BODY),
.body(&**INTERNAL_SERVER_ERROR_BODY),
_ => HttpResponse::InternalServerError()
.content_type("text/html; charset=utf-8")
.body(&*UNKNOWN_ERROR_BODY),
.body(&**UNKNOWN_ERROR_BODY),
};
resp

View File

@@ -104,7 +104,7 @@ async fn delete_account() -> impl Responder {
.unwrap();
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&page)
.body(page)
}
#[my_codegen::get(
@@ -117,5 +117,5 @@ async fn update_secret() -> impl Responder {
.unwrap();
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&page)
.body(page)
}

View File

@@ -54,7 +54,7 @@ impl<'a> Default for AdvanceIndexPage<'a> {
pub async fn advance() -> impl Responder {
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&*ADVANCE_INDEX)
.body(&**ADVANCE_INDEX)
}
#[derive(TemplateOnce, Clone)]
@@ -86,5 +86,5 @@ impl<'a> Default for EasyIndexPage<'a> {
pub async fn easy() -> impl Responder {
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&*EASY_INDEX)
.body(&**EASY_INDEX)
}

View File

@@ -34,5 +34,5 @@ pub async fn delete_sitekey(path: web::Path<String>) -> impl Responder {
.unwrap();
HttpResponse::Ok()
.content_type("text/html; charset=utf-8")
.body(&page)
.body(page)
}

View File

@@ -50,5 +50,5 @@ lazy_static! {
pub async fn sitemap() -> impl Responder {
HttpResponse::Ok()
.content_type("application/xml; charset=utf-8")
.body(&*INDEX)
.body(&**INDEX)
}