Skip to content

Commit

Permalink
Fix test raw_value
Browse files Browse the repository at this point in the history
  • Loading branch information
rooney committed May 1, 2024
1 parent 0ff9352 commit 1eac9e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ fn test_boxed_raw_value() {
assert_eq!(r#"{"foo": 2}"#, wrapper_from_reader.b.get());

let wrapper_from_value: Wrapper =
serde_json::from_value(json!({"a": 1, "b": {"foo": 2}, "c": 3})).unwrap();
serde_json::from_value(&json!({"a": 1, "b": {"foo": 2}, "c": 3})).unwrap();
assert_eq!(r#"{"foo":2}"#, wrapper_from_value.b.get());

let wrapper_to_string = serde_json::to_string(&wrapper_from_str).unwrap();
Expand Down

0 comments on commit 1eac9e3

Please sign in to comment.