You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compilation fails when using arrow-arith with chrono 0.4.41 due to ambiguous method resolution for quarter() in temporal.rs.
To Reproduce
Use arrow-arith 53.4.0 or later
With chrono 0.4.41
Compilation fails with trait ambiguity error
Error message
error[E0034]: multiple applicable items in scope
--> arrow-arith-53.4.0/src/temporal.rs:91:36
|
91 | DatePart::Quarter => |d| d.quarter() as i32,
| ^^^^^^^ multiple quarter found
|
note: candidate #1 is defined in the trait ChronoDateExt
note: candidate #2 is defined in the trait Datelike
Expected behavior
Code should compile without ambiguity errors.
Proposing solution
Disambiguate the method call on line 91 in temporal.rs file: