cargo fmt

This commit is contained in:
2026-06-15 22:58:59 -04:00
parent db5f6c74ce
commit bd9f8adec8
2 changed files with 10 additions and 3 deletions
-1
View File
@@ -1,4 +1,3 @@
use sqlx::Row; use sqlx::Row;
pub async fn insert( pub async fn insert(
+10 -2
View File
@@ -218,7 +218,7 @@ mod request {
id: &uuid::Uuid, id: &uuid::Uuid,
firstname: Option<&str>, firstname: Option<&str>,
lastname: Option<&str>, lastname: Option<&str>,
nickname: Option<&str> nickname: Option<&str>,
) -> Result<axum::response::Response, std::convert::Infallible> { ) -> Result<axum::response::Response, std::convert::Infallible> {
let payload = serde_json::json!({ let payload = serde_json::json!({
"firstname": firstname, "firstname": firstname,
@@ -405,7 +405,15 @@ async fn test_update_contact_names() {
let new_nickname = Some(TEST_CONTACT_UPDATED_NICKNAME); let new_nickname = Some(TEST_CONTACT_UPDATED_NICKNAME);
let contact_id = contact.id.unwrap(); let contact_id = contact.id.unwrap();
match request::update_contact_names(&app, &contact_id, new_firstname, new_lastname, new_nickname).await { match request::update_contact_names(
&app,
&contact_id,
new_firstname,
new_lastname,
new_nickname,
)
.await
{
Ok(response) => { Ok(response) => {
let resp = util::get_resp_data::< let resp = util::get_resp_data::<
textsender_api::caller::contact::response::UpdateContactNamesResponse, textsender_api::caller::contact::response::UpdateContactNamesResponse,