@@ -5,6 +5,8 @@ use std::ops::Bound;
55use sqlx_oldapi:: postgres:: types:: { Oid , PgInterval , PgMoney , PgRange } ;
66use sqlx_oldapi:: postgres:: Postgres ;
77use sqlx_test:: { test_decode_type, test_prepared_type, test_type} ;
8+
9+ #[ allow( unused_imports) ]
810use std:: str:: FromStr ;
911
1012test_type ! ( null<Option <i16 >>( Postgres ,
@@ -286,7 +288,7 @@ mod chrono {
286288
287289 test_type ! ( chrono_date_time_tz_utc<DateTime :: <Utc >>( Postgres ,
288290 "TIMESTAMPTZ '2019-01-02 05:10:20.115100'"
289- == DateTime :: from_naive_utc_and_offset(
291+ == DateTime :: < Utc > :: from_naive_utc_and_offset(
290292 NaiveDate :: from_ymd_opt( 2019 , 1 , 2 ) . unwrap( ) . and_hms_micro_opt( 5 , 10 , 20 , 115100 ) . unwrap( ) ,
291293 Utc ,
292294 )
@@ -300,7 +302,7 @@ mod chrono {
300302 test_type ! ( chrono_date_time_tz_vec<Vec <DateTime :: <Utc >>>( Postgres ,
301303 "array['2019-01-02 05:10:20.115100']::timestamptz[]"
302304 == vec![
303- DateTime :: from_naive_utc_and_offset(
305+ DateTime :: < Utc > :: from_naive_utc_and_offset(
304306 NaiveDate :: from_ymd_opt( 2019 , 1 , 2 ) . unwrap( ) . and_hms_micro_opt( 5 , 10 , 20 , 115100 ) . unwrap( ) ,
305307 Utc ,
306308 )
0 commit comments