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

build: upgrade to jiff 0.2 #1838

Merged
merged 1 commit into from
Feb 12, 2025
Merged

build: upgrade to jiff 0.2 #1838

merged 1 commit into from
Feb 12, 2025

Conversation

tisonkun
Copy link
Contributor

@tisonkun tisonkun commented Feb 11, 2025

We should not be affected by all the breaking changes - https://github.com/BurntSushi/jiff/releases/tag/0.2.0

cc @BurntSushi as you contribute the original replacement to time.

Comment on lines 169 to 172
fn two_weeks_ago() {
assert_eq!(parse_inner("2 weeks ago").unwrap().unwrap(), Span::new().weeks(2));
let actual = parse_inner("2 weeks ago").unwrap().unwrap();
assert_eq!(actual.fieldwise(), Span::new().weeks(2));
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only breaking chages in test. Now Span doesn't implement PartialEq/Eq, but for assertion, we can use fieldwise.

Copy link
Contributor

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks a lot!

@Byron Byron merged commit b310c16 into GitoxideLabs:main Feb 12, 2025
21 checks passed
@tisonkun tisonkun deleted the jiff02 branch February 12, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants