Skip to content

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