Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clippy failing on master : error: use of deprecated associated function chrono::NaiveDate::from_ymd: use from_ymd_opt() instead #4187

Closed
alamb opened this issue Nov 12, 2022 · 0 comments · Fixed by #4189
Labels
bug Something isn't working

Comments

@alamb
Copy link
Contributor

alamb commented Nov 12, 2022

Describe the bug
Clippy failing on master https://github.com/apache/arrow-datafusion/actions/runs/3450721677/jobs/5759527413

error: use of deprecated associated function `chrono::NaiveDate::from_ymd`: use `from_ymd_opt()` instead
   --> datafusion/common/src/scalar.rs:528:28
    |
528 |     let epoch = NaiveDate::from_ymd(1970, 1, 1);
    |                            ^^^^^^^^

To Reproduce
Run clippy after cargo update

Expected behavior
clippy passes

Additional context
I suspect the function was deprecated in https://crates.io/crates/chrono/0.4.23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant