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
Because of the above and also the slow adoption of jiff(I only cargo added it because underway is using it), one has to pay extra attention to the version cargo is adding.
error[E0308]: mismatched types
--> src/lib.rs:27:45
|
27 | underway::queue::run_deletion_every(db,1.hour()).await;
| ----------------------------------- ^^^^^^^^ expected `jiff::span::Span`, found `Span`
| |
| arguments to this function are incorrect
|
note: two different versions of crate `jiff` are being used; two types coming from two different versions of the same crate are different types even if they look the same
--> /home/chung/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.2.17/src/span.rs:711:1
|
711 | pub struct Span{
| ^^^^^^^^^^^^^^^ this is the found type `Span`
|
::: /home/chung/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/jiff-0.1.29/src/span.rs:686:1
|
686 | pub struct Span{
| ^^^^^^^^^^^^^^^ this is the expected type `jiff::span::Span`
From what I can see, Span is purely for convenience and at the end it is converted to std::time::Duration anyway.
I am wondering if it is reasonable to either
just re-export jiff or jiff::Span?
just remove Span completely and accept Duration instead, I know it is a bit annoying to make a Duration.
This discussion was converted from issue #112 on December 31, 2025 17:04.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the moment
jiff::Spanis used in a few places, see theIn Parameterstab,Because of the above and also the slow adoption of jiff(I only
cargo added it because underway is using it), one has to pay extra attention to the version cargo is adding.From what I can see,
Spanis purely for convenience and at the end it is converted tostd::time::Durationanyway.I am wondering if it is reasonable to either
jifforjiff::Span?Beta Was this translation helpful? Give feedback.
All reactions