diff --git a/src/repo/contact.rs b/src/repo/contact.rs index b8bd257..5902aed 100644 --- a/src/repo/contact.rs +++ b/src/repo/contact.rs @@ -1,4 +1,3 @@ - use sqlx::Row; pub async fn insert( diff --git a/tests/test.rs b/tests/test.rs index 59abf7a..801fc62 100644 --- a/tests/test.rs +++ b/tests/test.rs @@ -218,7 +218,7 @@ mod request { id: &uuid::Uuid, firstname: Option<&str>, lastname: Option<&str>, - nickname: Option<&str> + nickname: Option<&str>, ) -> Result { let payload = serde_json::json!({ "firstname": firstname, @@ -405,7 +405,15 @@ async fn test_update_contact_names() { let new_nickname = Some(TEST_CONTACT_UPDATED_NICKNAME); 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) => { let resp = util::get_resp_data::< textsender_api::caller::contact::response::UpdateContactNamesResponse,