mirror of
https://github.com/serde-rs/serde.git
synced 2025-10-02 07:21:12 +00:00
Follow rustc: New destructor semantics
This commit is contained in:
parent
03820f3d78
commit
70e8556e07
@ -1266,8 +1266,8 @@ mod tests {
|
|||||||
#[test]
|
#[test]
|
||||||
fn test_as_object() {
|
fn test_as_object() {
|
||||||
let json_value: Value = from_str("{}").unwrap();
|
let json_value: Value = from_str("{}").unwrap();
|
||||||
let json_object = json_value.as_object();
|
|
||||||
let map = BTreeMap::<string::String, Value>::new();
|
let map = BTreeMap::<string::String, Value>::new();
|
||||||
|
let json_object = json_value.as_object();
|
||||||
assert_eq!(json_object, Some(&map));
|
assert_eq!(json_object, Some(&map));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user