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;