From ad6872c498f0f72f47b8f17e72dbb5e03b5f5372 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 8 Apr 2019 10:05:56 -0500 Subject: [PATCH] Predicate `Local` conversion fns on `clock` feature --- src/datetime.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/datetime.rs b/src/datetime.rs index b8e0ee6..8098410 100644 --- a/src/datetime.rs +++ b/src/datetime.rs @@ -247,6 +247,7 @@ impl From> for DateTime { } /// Convert a `DateTime` instance into a `DateTime` instance. +#[cfg(feature="clock")] impl From> for DateTime { /// Convert this `DateTime` instance into a `DateTime` instance. /// @@ -268,6 +269,7 @@ impl From> for DateTime { } /// Convert a `DateTime` instance into a `DateTime` instance. +#[cfg(feature="clock")] impl From> for DateTime { /// Convert this `DateTime` instance into a `DateTime` instance. /// @@ -279,6 +281,7 @@ impl From> for DateTime { } /// Convert a `DateTime` instance into a `DateTime` instance. +#[cfg(feature="clock")] impl From> for DateTime { /// Convert this `DateTime` instance into a `DateTime` instance. /// @@ -290,6 +293,7 @@ impl From> for DateTime { } /// Convert a `DateTime` instance into a `DateTime` instance. +#[cfg(feature="clock")] impl From> for DateTime { /// Convert this `DateTime` instance into a `DateTime` instance. ///