@@ -1260,18 +1260,19 @@ mod doublepq_tests {
12601260mod serde_tests_basics {
12611261 use priority_queue:: DoublePriorityQueue ;
12621262 use serde_test:: { assert_tokens, Token } ;
1263-
1264- #[ cfg( not( feature = "std" ) ) ]
1265- use twox_hash:: XxHash64 ;
1263+
12661264 #[ cfg( not( feature = "std" ) ) ]
12671265 use core:: hash:: BuildHasherDefault ;
1266+ #[ cfg( not( feature = "std" ) ) ]
1267+ use twox_hash:: XxHash64 ;
12681268
12691269 #[ test]
12701270 fn serde_empty ( ) {
12711271 #[ cfg( feature = "std" ) ]
12721272 let pq: DoublePriorityQueue < String , i32 > = DoublePriorityQueue :: new ( ) ;
12731273 #[ cfg( not( feature = "std" ) ) ]
1274- let pq: DoublePriorityQueue < String , i32 , BuildHasherDefault < XxHash64 > > = DoublePriorityQueue :: default ( ) ;
1274+ let pq: DoublePriorityQueue < String , i32 , BuildHasherDefault < XxHash64 > > =
1275+ DoublePriorityQueue :: default ( ) ;
12751276
12761277 assert_tokens ( & pq, & [ Token :: Seq { len : Some ( 0 ) } , Token :: SeqEnd ] ) ;
12771278 }
@@ -1281,7 +1282,8 @@ mod serde_tests_basics {
12811282 #[ cfg( feature = "std" ) ]
12821283 let mut pq = DoublePriorityQueue :: new ( ) ;
12831284 #[ cfg( not( feature = "std" ) ) ]
1284- let mut pq: DoublePriorityQueue < & str , i32 , BuildHasherDefault < XxHash64 > > = DoublePriorityQueue :: default ( ) ;
1285+ let mut pq: DoublePriorityQueue < & str , i32 , BuildHasherDefault < XxHash64 > > =
1286+ DoublePriorityQueue :: default ( ) ;
12851287
12861288 pq. push ( "a" , 1 ) ;
12871289 pq. push ( "b" , 2 ) ;
@@ -1328,11 +1330,11 @@ mod serde_tests_custom_structs {
13281330 use std:: default:: Default ;
13291331 use std:: time:: Duration ;
13301332 use uuid:: Uuid ;
1331-
1332- #[ cfg( not( feature = "std" ) ) ]
1333- use twox_hash:: XxHash64 ;
1333+
13341334 #[ cfg( not( feature = "std" ) ) ]
13351335 use core:: hash:: BuildHasherDefault ;
1336+ #[ cfg( not( feature = "std" ) ) ]
1337+ use twox_hash:: XxHash64 ;
13361338
13371339 use serde:: { Deserialize , Serialize } ;
13381340
@@ -1430,7 +1432,7 @@ mod serde_tests_custom_structs {
14301432 #[ cfg( feature = "std" ) ]
14311433 type PqType = DoublePriorityQueue < i32 , i32 > ;
14321434 #[ cfg( not( feature = "std" ) ) ]
1433- type PqType = DoublePriorityQueue < i32 , i32 , BuildHasherDefault < XxHash64 > > ;
1435+ type PqType = DoublePriorityQueue < i32 , i32 , BuildHasherDefault < XxHash64 > > ;
14341436
14351437 let mut pq: PqType = DoublePriorityQueue :: default ( ) ;
14361438 pq. push ( 0 , 0 ) ;
@@ -1514,7 +1516,8 @@ mod serde_tests_custom_structs {
15141516 #[ cfg( feature = "std" ) ]
15151517 type PqType = DoublePriorityQueue < ConcreteEvent1 , EventComparables > ;
15161518 #[ cfg( not( feature = "std" ) ) ]
1517- type PqType = DoublePriorityQueue < ConcreteEvent1 , EventComparables , BuildHasherDefault < XxHash64 > > ;
1519+ type PqType =
1520+ DoublePriorityQueue < ConcreteEvent1 , EventComparables , BuildHasherDefault < XxHash64 > > ;
15181521
15191522 let mut pq: PqType = DoublePriorityQueue :: default ( ) ;
15201523 pq. push ( ce1, ec1) ;
0 commit comments