From f667084da2b078feeb833eb7dc7678ff9160cc9e Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Mon, 23 Sep 2024 16:01:15 +0900 Subject: [PATCH] style: Remove unnecessary commas --- time/src/offset_date_time.rs | 2 +- time/src/serde/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/time/src/offset_date_time.rs b/time/src/offset_date_time.rs index 52f179985..79cc48bd4 100644 --- a/time/src/offset_date_time.rs +++ b/time/src/offset_date_time.rs @@ -74,7 +74,7 @@ impl OffsetDateTime { /// ```rust /// # use time::OffsetDateTime; /// # use time_macros::datetime; - /// assert_eq!(OffsetDateTime::UNIX_EPOCH, datetime!(1970-01-01 0:00 UTC),); + /// assert_eq!(OffsetDateTime::UNIX_EPOCH, datetime!(1970-01-01 0:00 UTC)); /// ``` pub const UNIX_EPOCH: Self = Self::new_in_offset( // Safety: `ordinal` is not zero. diff --git a/time/src/serde/mod.rs b/time/src/serde/mod.rs index 5cc5122c9..f644eb535 100644 --- a/time/src/serde/mod.rs +++ b/time/src/serde/mod.rs @@ -205,7 +205,7 @@ use serde::{Deserialize, Deserializer, Serialize, Serializer}; /// ``` /// /// [`format_description::parse()`]: crate::format_description::parse() -#[cfg(all(feature = "macros", any(feature = "formatting", feature = "parsing"),))] +#[cfg(all(feature = "macros", any(feature = "formatting", feature = "parsing")))] pub use time_macros::serde_format_description as format_description; use self::visitor::Visitor;