Skip to content

Commit

Permalink
chore: run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperswitch-bot[bot] committed Apr 24, 2024
1 parent eb95b09 commit ed7cbd5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions crates/common_utils/src/custom_serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<S>(date_time: &PrimitiveDateTime, serializer: S) -> Result<S::Ok, S::Error>
Expand Down

0 comments on commit ed7cbd5

Please sign in to comment.