From 4d3bb7778af5aaef9651d679356eb8d9a4c2cc8f Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 4 Jun 2026 20:26:41 -0400 Subject: [PATCH] Code cleanup --- src/twilio/api/mod.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/twilio/api/mod.rs b/src/twilio/api/mod.rs index 2c114c5..bc43e9f 100644 --- a/src/twilio/api/mod.rs +++ b/src/twilio/api/mod.rs @@ -38,10 +38,7 @@ pub async fn send_mssage( // params.insert("PersistentAction", "string"); params.insert("ShortenUrls", "true"); let date = match param.schedule_at { - Some(date_value) => { - let converted = date_value.to_string(); - converted - } + Some(date_value) => date_value.to_string(), None => String::new(), }; if param.schedule && is_scheduleable(&Some(now), ¶m.schedule_at) { @@ -130,7 +127,7 @@ fn is_scheduleable( .unwrap() .checked_add(time::Duration::seconds(300)) .unwrap(); - if *schedule_at > early { true } else { false } + *schedule_at > early } None => false, }