@@ -849,7 +849,6 @@ fn test_as_null(){
849849#[ test]
850850fn test_encode_hashmap_with_numeric_key ( ) {
851851 use std:: str:: from_utf8;
852- use std:: collections:: HashMap ;
853852 let mut hm: HashMap < usize , bool > = HashMap :: new ( ) ;
854853 hm. insert ( 1 , true ) ;
855854 let mut mem_buf = Vec :: new ( ) ;
@@ -864,7 +863,6 @@ fn test_encode_hashmap_with_numeric_key() {
864863#[ test]
865864fn test_prettyencode_hashmap_with_numeric_key ( ) {
866865 use std:: str:: from_utf8;
867- use std:: collections:: HashMap ;
868866 let mut hm: HashMap < usize , bool > = HashMap :: new ( ) ;
869867 hm. insert ( 1 , true ) ;
870868 let mut mem_buf = Vec :: new ( ) ;
@@ -930,7 +928,6 @@ fn test_prettyencoder_indent_level_param() {
930928
931929#[ test]
932930fn test_hashmap_with_enum_key ( ) {
933- use std:: collections:: HashMap ;
934931 #[ derive( RustcEncodable , Eq , Hash , PartialEq , RustcDecodable , Debug ) ]
935932 enum Enum {
936933 Foo ,
@@ -947,7 +944,6 @@ fn test_hashmap_with_enum_key() {
947944
948945#[ test]
949946fn test_hashmap_with_numeric_key_can_handle_double_quote_delimited_key ( ) {
950- use std:: collections:: HashMap ;
951947 let json_str = "{\" 1\" :true}" ;
952948 let json_obj = match from_str ( json_str) {
953949 Err ( _) => panic ! ( "Unable to parse json_str: {:?}" , json_str) ,
@@ -959,7 +955,6 @@ fn test_hashmap_with_numeric_key_can_handle_double_quote_delimited_key() {
959955
960956#[ test]
961957fn test_hashmap_with_numeric_key_will_error_with_string_keys ( ) {
962- use std:: collections:: HashMap ;
963958 let json_str = "{\" a\" :true}" ;
964959 let json_obj = match from_str ( json_str) {
965960 Err ( _) => panic ! ( "Unable to parse json_str: {:?}" , json_str) ,
@@ -1267,7 +1262,6 @@ fn test_to_json() {
12671262
12681263#[ test]
12691264fn test_encode_hashmap_with_arbitrary_key ( ) {
1270- use std:: collections:: HashMap ;
12711265 #[ derive( PartialEq , Eq , Hash , RustcEncodable ) ]
12721266 struct ArbitraryType ( usize ) ;
12731267 let mut hm: HashMap < ArbitraryType , bool > = HashMap :: new ( ) ;
0 commit comments