From 2da2a556d26f107af8da4f6ce7cb141b7f82e6ba Mon Sep 17 00:00:00 2001 From: Amer Redzovic Date: Fri, 7 Feb 2025 22:47:45 +0100 Subject: [PATCH 1/2] feature: re-export format_description and macros module --- sqlx-core/src/types/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlx-core/src/types/mod.rs b/sqlx-core/src/types/mod.rs index 909dd4927b..218d83ce15 100644 --- a/sqlx-core/src/types/mod.rs +++ b/sqlx-core/src/types/mod.rs @@ -55,7 +55,7 @@ pub use bit_vec::BitVec; #[cfg_attr(docsrs, doc(cfg(feature = "time")))] pub mod time { #[doc(no_inline)] - pub use time::{Date, OffsetDateTime, PrimitiveDateTime, Time, UtcOffset}; + pub use time::{Date, OffsetDateTime, PrimitiveDateTime, Time, UtcOffset, format_description, macros}; } #[cfg(feature = "bigdecimal")] From 58180f225271a453e99a5b6bb6ad9d82492d42fc Mon Sep 17 00:00:00 2001 From: Amer Redzovic Date: Fri, 7 Feb 2025 23:01:53 +0100 Subject: [PATCH 2/2] fix: update format to pass test --- sqlx-core/src/types/mod.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sqlx-core/src/types/mod.rs b/sqlx-core/src/types/mod.rs index 218d83ce15..69cece3b36 100644 --- a/sqlx-core/src/types/mod.rs +++ b/sqlx-core/src/types/mod.rs @@ -55,7 +55,9 @@ pub use bit_vec::BitVec; #[cfg_attr(docsrs, doc(cfg(feature = "time")))] pub mod time { #[doc(no_inline)] - pub use time::{Date, OffsetDateTime, PrimitiveDateTime, Time, UtcOffset, format_description, macros}; + pub use time::{ + format_description, macros, Date, OffsetDateTime, PrimitiveDateTime, Time, UtcOffset, + }; } #[cfg(feature = "bigdecimal")]