Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3ae99a4

Browse files
committedFeb 11, 2025
build: upgrade to jiff 0.2
Signed-off-by: tison <wander4096@gmail.com>
1 parent 503098d commit 3ae99a4

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed
 

‎Cargo.lock

+30-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎gix-archive/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ gix-date = { version = "^0.9.3", path = "../gix-date" }
3434

3535
flate2 = { version = "1.0.33", optional = true }
3636
zip = { version = "2.1.0", optional = true, default-features = false, features = ["deflate"] }
37-
jiff = { version = "0.1.2", default-features = false, features = ["std"] }
37+
jiff = { version = "0.2.0", default-features = false, features = ["std"] }
3838

3939
thiserror = "2.0.0"
4040
bstr = { version = "1.5.0", default-features = false }

‎gix-date/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = ["dep:serde", "bstr/serde"]
2222
bstr = { version = "1.3.0", default-features = false, features = ["std"] }
2323
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
2424
itoa = "1.0.1"
25-
jiff = "0.1.1"
25+
jiff = "0.2.0"
2626
thiserror = "2.0.0"
2727

2828
document-features = { version = "0.2.0", optional = true }

‎gix-date/src/parse.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ mod relative {
167167

168168
#[test]
169169
fn two_weeks_ago() {
170-
assert_eq!(parse_inner("2 weeks ago").unwrap().unwrap(), Span::new().weeks(2));
170+
let actual = parse_inner("2 weeks ago").unwrap().unwrap();
171+
assert_eq!(actual.fieldwise(), Span::new().weeks(2));
171172
}
172173
}
173174
}

0 commit comments

Comments
 (0)
Failed to load comments.