Skip to content

Commit b238bdb

Browse files
committed
fix: update type annotations for DateTime in MySQL tests
- Change DateTime::from_naive_utc_and_offset to DateTime::<Utc>::from_naive_utc_and_offset in chrono tests
1 parent b01e473 commit b238bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/mysql/types.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ mod chrono {
8888

8989
test_type!(chrono_timestamp<DateTime::<Utc>>(MySql,
9090
"TIMESTAMP '2019-01-02 05:10:20.115100'"
91-
== DateTime::from_naive_utc_and_offset(
91+
== DateTime::<Utc>::from_naive_utc_and_offset(
9292
NaiveDateTime::parse_from_str("2019-01-02 05:10:20.115100", "%Y-%m-%d %H:%M:%S%.f").unwrap(),
9393
Utc,
9494
)
9595
));
9696

9797
test_type!(chrono_fixed_offset<DateTime::<FixedOffset>>(MySql,
9898
"TIMESTAMP '2019-01-02 05:10:20.115100'"
99-
== DateTime::from_naive_utc_and_offset(
99+
== DateTime::<Utc>::from_naive_utc_and_offset(
100100
NaiveDateTime::parse_from_str("2019-01-02 05:10:20.115100", "%Y-%m-%d %H:%M:%S%.f").unwrap(),
101101
Utc,
102102
)

0 commit comments

Comments
 (0)