From 95dbe2bf82f6a3b135c1f478853be7f2959921c9 Mon Sep 17 00:00:00 2001 From: phoenix Date: Thu, 25 Jun 2026 21:21:15 -0400 Subject: [PATCH] cargo fmt --- src/service/contact.rs | 11 +++-------- src/service/core.rs | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/service/contact.rs b/src/service/contact.rs index 603e3e6..b452b2e 100644 --- a/src/service/contact.rs +++ b/src/service/contact.rs @@ -7,11 +7,9 @@ impl Contact { pub async fn get( &self, contact_id: &uuid::Uuid, - ) -> Result, std::io::Error> - { + ) -> Result, std::io::Error> { let client = reqwest::Client::new(); - let endpoint = - format!("api/v1/contact?id={contact_id}"); + let endpoint = format!("api/v1/contact?id={contact_id}"); let api_url = format!("{}/{endpoint}", self.app.api_url); println!("Url: {api_url:?}"); @@ -43,9 +41,7 @@ async fn parse_response( if lrs.is_empty() { Err(std::io::Error::other("Error response is empty")) } else { - let mut events: Vec< - textsender_models::contact::Contact, - > = Vec::new(); + let mut events: Vec = Vec::new(); for event in lrs.iter() { let ll: textsender_models::contact::Contact = @@ -66,4 +62,3 @@ async fn parse_response( Err(err) => Err(std::io::Error::other(err.to_string())), } } - diff --git a/src/service/core.rs b/src/service/core.rs index 97441db..c499703 100644 --- a/src/service/core.rs +++ b/src/service/core.rs @@ -53,7 +53,7 @@ impl Service { let contacts = super::contact::Contact { app: self.app.clone(), - token: self.token.clone() + token: self.token.clone(), }; let events = events.unwrap_or_default(); for event in events {