From 70f5261b4996de4c81f8e2104fb7b3fb325798b8 Mon Sep 17 00:00:00 2001 From: phoenix Date: Wed, 3 Jun 2026 21:59:16 -0400 Subject: [PATCH] Changing return type --- src/twilio/api/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/twilio/api/mod.rs b/src/twilio/api/mod.rs index f6ef1bd..2343c2d 100644 --- a/src/twilio/api/mod.rs +++ b/src/twilio/api/mod.rs @@ -7,7 +7,7 @@ pub async fn send_mssage( contact: &textsender_models::contact::Contact, param: crate::twilio::types::Parameters, config: &textsender_models::config::auxiliary::TwilioConfig, -) -> Result { +) -> Result { if config.account_sid.is_empty() { Err(std::io::Error::other("Account SID is empty")) } else if config.auth_token.is_empty() { @@ -72,6 +72,8 @@ pub async fn send_mssage( match request.send().await { Ok(response) => { + Ok(response) + /* match response .json::() .await @@ -79,7 +81,6 @@ pub async fn send_mssage( Ok(resp) => Ok(resp), Err(err) => Err(std::io::Error::other(err)), } - /* match response.text().await { Ok(body) => { let mut obj = crate::twilio::api::types::TwilioAPIMessage {