From 70e8556e070df017d04f90107d9f7c60399e6c67 Mon Sep 17 00:00:00 2001 From: Thomas Bahn Date: Fri, 6 Feb 2015 21:10:58 +0100 Subject: [PATCH] Follow rustc: New destructor semantics --- src/json/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/json/mod.rs b/src/json/mod.rs index 10edb221..256bdc8c 100644 --- a/src/json/mod.rs +++ b/src/json/mod.rs @@ -1266,8 +1266,8 @@ mod tests { #[test] fn test_as_object() { let json_value: Value = from_str("{}").unwrap(); - let json_object = json_value.as_object(); let map = BTreeMap::::new(); + let json_object = json_value.as_object(); assert_eq!(json_object, Some(&map)); }