From ed7cbd5c12991c0680aa833f167c93e6874e3a14 Mon Sep 17 00:00:00 2001 From: "hyperswitch-bot[bot]" <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 11:36:46 +0000 Subject: [PATCH] chore: run formatter --- crates/common_utils/src/custom_serde.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crates/common_utils/src/custom_serde.rs b/crates/common_utils/src/custom_serde.rs index 5bf51fb77298..c88650b133dc 100644 --- a/crates/common_utils/src/custom_serde.rs +++ b/crates/common_utils/src/custom_serde.rs @@ -17,10 +17,11 @@ pub mod iso8601 { PrimitiveDateTime, UtcOffset, }; - const FORMAT_CONFIG: EncodedConfig = - Config::DEFAULT.set_time_precision(TimePrecision::Second { + const FORMAT_CONFIG: EncodedConfig = Config::DEFAULT + .set_time_precision(TimePrecision::Second { decimal_digits: NonZeroU8::new(6), - }).encode(); + }) + .encode(); /// Serialize a [`PrimitiveDateTime`] using the well-known ISO 8601 format. pub fn serialize(date_time: &PrimitiveDateTime, serializer: S) -> Result