Skip to content

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

@alamb

Description

@alamb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions