Skip to content

Commit

Permalink
Update dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ISibboI committed Oct 17, 2024
1 parent 0d902f5 commit 4cc2a48
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 26 deletions.
74 changes: 54 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ regex = ["dep:regex"]
rand = ["dep:rand"]

[dev-dependencies]
ron = "0.7.1"
ron = "0.8.1"
rand = "0.8.5"
rand_pcg = "0.3.1"

Expand Down
10 changes: 5 additions & 5 deletions tests/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ fn test_serde() {
fn test_serde_errors() {
assert_eq!(
ron::de::from_str::<Node>("[\"5==5\"]"),
Err(ron::Error {
code: ron::de::ErrorCode::ExpectedString,
Err(ron::de::SpannedError {
code: ron::Error::ExpectedString,
position: ron::de::Position { col: 1, line: 1 }
})
);
assert_eq!(
ron::de::from_str::<Node>("\"&\""),
Err(ron::Error {
code: ron::de::ErrorCode::Message(
Err(ron::de::SpannedError {
code: ron::Error::Message(
"Found a partial token '&' that should be followed by another partial token."
.to_owned()
),
position: ron::de::Position { line: 0, col: 0 }
position: ron::de::Position { line: 1, col: 4 }
})
);
// Ensure that this does not panic.
Expand Down

0 comments on commit 4cc2a48

Please sign in to comment.