error: use of deprecated associated function `chrono::DateTime::<Tz>::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead
--> postgres-types/src/chrono_04.rs:43:22
|
43 | Ok(DateTime::from_utc(naive, Utc))
| ^^^^^^^^
|
= note: `-D deprecated` implied by `-D warnings`
error: could not compile `postgres-types` (lib) due to previous error
Fixes the test run failing in https://github.com/sfackler/rust-postgres/actions/runs/6589121392/job/17903210060?pr=1074 for pull request https://github.com/sfackler/rust-postgres/pull/1074