From 1e9c731a55cd00fce5b54945bfc58505e68cd1d1 Mon Sep 17 00:00:00 2001 From: buj Date: Sun, 25 Aug 2024 17:30:48 +0700 Subject: [PATCH] cargo fmt --- src/hook.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/hook.rs b/src/hook.rs index 7a68620..3e10016 100644 --- a/src/hook.rs +++ b/src/hook.rs @@ -90,7 +90,11 @@ impl Webhook { /// Send a message. /// /// Will try indefinitely until success. - pub fn send(&self, message: impl Fn(MessageBuilder) -> MessageBuilder, logger: &mut L) -> Message { + pub fn send( + &self, + message: impl Fn(MessageBuilder) -> MessageBuilder, + logger: &mut L, + ) -> Message { let mut message: Message = message(Default::default()).0; let mut bodies: Vec> = vec![]; @@ -193,7 +197,9 @@ impl Webhook { break message; } Err(why) => { - logger.error(&format!("Error sending request: {why}, retrying in 1 minute...")); + logger.error(&format!( + "Error sending request: {why}, retrying in 1 minute..." + )); std::thread::sleep(Duration::from_secs(60)); } }