Skip to content

Commit

Permalink
Updated crate dependencies
Browse files Browse the repository at this point in the history
The typo in Chrono was fixed in version 0.4.33, as a result of PR
chronotope/chrono#1384, and so the related tests
have been updated.
  • Loading branch information
danwilliams committed Jan 28, 2024
1 parent 371fede commit 82a7634
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions crates/rubedo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ reasons = []

[dependencies]
base64 = "0.21.7"
chrono = { version = "0.4.32", features = ["alloc", "clock", "std"] }
chrono = { version = "0.4.33", features = ["alloc", "clock", "std"] }
futures = "0.3.30"
http = "0.2.11"
http-body = "0.4.5"
hyper = "0.14.27"
http-body = "0.4.6"
hyper = "0.14.28"
rubedo-macros = { path = "../rubedo-macros", version = "0.4.3" }
rust_decimal = "1.33.1"
serde = { version = "1.0.195", features = ["derive"] }
serde_json = { version = "1.0.111", features = ["preserve_order"] }
serde = { version = "1.0.196", features = ["derive"] }
serde_json = { version = "1.0.112", features = ["preserve_order"] }

[dev-dependencies]
assert-json-diff = "2.0.2"
Expand Down
4 changes: 2 additions & 2 deletions crates/rubedo/src/tests/chrono.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ mod duration_ext {
assert_eq!(Duration::hours(Duration::MAX_HOURS).num_hours(), Duration::MAX_HOURS);
}
#[test]
#[should_panic(expected = "Duration::hours ouf of bounds")] // Typo in Chrono
#[should_panic(expected = "Duration::hours out of bounds")]
fn max_hours__overflow_construction() {
let _ = Duration::hours(Duration::MAX_HOURS + 1);
}
Expand Down Expand Up @@ -222,7 +222,7 @@ mod duration_ext {
assert_eq!(Duration::hours(Duration::MIN_HOURS).num_hours(), Duration::MIN_HOURS);
}
#[test]
#[should_panic(expected = "Duration::hours ouf of bounds")] // Typo in Chrono
#[should_panic(expected = "Duration::hours out of bounds")]
fn min_hours__overflow_construction() {
let _ = Duration::hours(Duration::MIN_HOURS - 1);
}
Expand Down

0 comments on commit 82a7634

Please sign in to comment.