diff --git a/sqlx-core/src/any/types.rs b/sqlx-core/src/any/types.rs index 124517fabf..cf57119766 100644 --- a/sqlx-core/src/any/types.rs +++ b/sqlx-core/src/any/types.rs @@ -121,8 +121,8 @@ impl_any_type!(chrono::NaiveDateTime); impl_any_type!(chrono::DateTime); #[cfg(all( feature = "chrono", - any(feature = "sqlite", feature = "postgres"), - not(any(feature = "mysql", feature = "mssql")) + any(feature = "sqlite", feature = "postgres", feature = "mysql"), + not(feature = "mssql") ))] impl_any_type!(chrono::DateTime); @@ -153,8 +153,8 @@ impl_any_encode!(chrono::NaiveDateTime); impl_any_encode!(chrono::DateTime); #[cfg(all( feature = "chrono", - any(feature = "sqlite", feature = "postgres"), - not(any(feature = "mysql", feature = "mssql")) + any(feature = "sqlite", feature = "postgres", feature = "mysql"), + not(feature = "mssql") ))] impl_any_encode!(chrono::DateTime); @@ -185,7 +185,7 @@ impl_any_decode!(chrono::NaiveDateTime); impl_any_decode!(chrono::DateTime); #[cfg(all( feature = "chrono", - any(feature = "sqlite", feature = "postgres"), - not(any(feature = "mysql", feature = "mssql")) + any(feature = "sqlite", feature = "postgres", feature = "mysql"), + not(feature = "mssql") ))] impl_any_decode!(chrono::DateTime);