remove unneeded async

main
Zynh0722 2023-11-06 18:36:49 -08:00
parent c31c8e91ac
commit 58fa1864d1
1 changed files with 2 additions and 3 deletions

View File

@ -115,7 +115,7 @@ async fn add_drink(
}; };
let open_shift = open_shift.unwrap(); let open_shift = open_shift.unwrap();
async { {
use cm_lib::schema::drinks::dsl::*; use cm_lib::schema::drinks::dsl::*;
diesel::insert_into(drinks) diesel::insert_into(drinks)
@ -123,8 +123,7 @@ async fn add_drink(
.execute(&mut conn) .execute(&mut conn)
.await .await
.unwrap() .unwrap()
} };
.await;
let mut headers = axum::http::HeaderMap::new(); let mut headers = axum::http::HeaderMap::new();
headers.insert("HX-Push-Url", "/".parse().unwrap()); headers.insert("HX-Push-Url", "/".parse().unwrap());