Warning fixes
swoosh pr / Rustfmt (pull_request) Successful in 49s
Release Tagging / release (pull_request) Successful in 32s
swoosh pr / Clippy (pull_request) Successful in 1m25s
swoosh pr / Check (pull_request) Successful in 1m56s

This commit is contained in:
2026-07-03 00:42:14 -04:00
parent 4dfd355bd8
commit 65b119a7e1
+3 -3
View File
@@ -40,15 +40,15 @@ impl SendMsg {
param: &crate::twilio::types::Parameters,
) -> Result<reqwest::Response, std::io::Error> {
if self.recipient.phone_number.is_empty() {
return Err(std::io::Error::other("Recipient not provided"));
Err(std::io::Error::other("Recipient not provided"))
} else if self.message.content.is_empty() {
return Err(std::io::Error::other("Message not provided"));
Err(std::io::Error::other("Message not provided"))
} else if self.config.phone_number.is_empty()
|| self.config.service_sid.is_empty()
|| self.config.auth_token.is_empty()
|| self.config.auth_sid.is_empty()
{
return Err(std::io::Error::other("Config not populated"));
Err(std::io::Error::other("Config not populated"))
} else {
let client = match reqwest::Client::builder().build() {
Ok(client) => client,