-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
ArroyoSystems/arroyo
#839Labels
Description
Describe the bug
chrono v0.4.40, which was released just a few hours ago, provides its own .quarter() method.
pull request: chronotope/chrono#1666
So, this now conflicts with the arrow's implementation.
error[E0034]: multiple applicable items in scope
--> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-54.2.0/src/temporal.rs:92:36
|
92 | DatePart::Quarter => |d| d.quarter() as i32,
| ^^^^^^^ multiple `quarter` found
|
note: candidate #1 is defined in the trait `ChronoDateExt`
--> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-arith-54.2.0/src/temporal.rs:638:5
|
638 | fn quarter(&self) -> u32;
| ^^^^^^^^^^^^^^^^^^^^^^^^^
note: candidate #2 is defined in the trait `Datelike`
--> /Users/yutannihilation/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/chrono-0.4.40/src/traits.rs:47:5
|
47 | fn quarter(&self) -> u32 {
| ^^^^^^^^^^^^^^^^^^^^^^^^
help: disambiguate the method for candidate #1
|
92 | DatePart::Quarter => |d| ChronoDateExt::quarter(&d) as i32,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
help: disambiguate the method for candidate #2
|
92 | DatePart::Quarter => |d| Datelike::quarter(&d) as i32,
| ~~~~~~~~~~~~~~~~~~~~~
For more information about this error, try `rustc --explain E0034`.
error: could not compile `arrow-arith` (lib) due to 1 previous error
To Reproduce
cargo update chrono
cargo buildExpected behavior
Additional context
ddimaria, MozgovoyOkek, AOx0, awarebayes, maccesch and 2 moreSaelKimberly and ddimaria