@@ -316,7 +316,7 @@ impl ClusterConnection {
316
316
}
317
317
318
318
if let Ok ( mut conn) =
319
- connect ( addr. as_ref ( ) , self . readonly , self . password . clone ( ) )
319
+ connect ( addr. as_ref ( ) , self . readonly , self . password . clone ( ) )
320
320
{
321
321
if check_connection ( & mut conn) {
322
322
new_connections. insert ( addr. to_string ( ) , conn) ;
@@ -331,8 +331,8 @@ impl ClusterConnection {
331
331
}
332
332
333
333
fn create_new_slots < F > ( & self , mut get_addr : F ) -> RedisResult < SlotMap >
334
- where
335
- F : FnMut ( & Slot ) -> String ,
334
+ where
335
+ F : FnMut ( & Slot ) -> String ,
336
336
{
337
337
let mut connections = self . connections . borrow_mut ( ) ;
338
338
let mut new_slots = None ;
@@ -419,9 +419,9 @@ impl ClusterConnection {
419
419
}
420
420
421
421
fn execute_on_all_nodes < T , F > ( & self , mut func : F ) -> RedisResult < T >
422
- where
423
- T : MergeResults ,
424
- F : FnMut ( & mut Connection ) -> RedisResult < T > ,
422
+ where
423
+ T : MergeResults ,
424
+ F : FnMut ( & mut Connection ) -> RedisResult < T > ,
425
425
{
426
426
let mut connections = self . connections . borrow_mut ( ) ;
427
427
let mut results = HashMap :: new ( ) ;
@@ -436,9 +436,9 @@ impl ClusterConnection {
436
436
437
437
#[ allow( clippy:: unnecessary_unwrap) ]
438
438
fn request < T , F > ( & self , cmd : & [ u8 ] , mut func : F ) -> RedisResult < T >
439
- where
440
- T : MergeResults + std:: fmt:: Debug ,
441
- F : FnMut ( & mut Connection ) -> RedisResult < T > ,
439
+ where
440
+ T : MergeResults + std:: fmt:: Debug ,
441
+ F : FnMut ( & mut Connection ) -> RedisResult < T > ,
442
442
{
443
443
let slot = match RoutingInfo :: for_packed_command ( cmd) {
444
444
Some ( RoutingInfo :: Random ) => None ,
@@ -535,8 +535,8 @@ impl ClusterConnection {
535
535
536
536
trait MergeResults {
537
537
fn merge_results ( _values : HashMap < & str , Self > ) -> Self
538
- where
539
- Self : Sized ;
538
+ where
539
+ Self : Sized ;
540
540
}
541
541
542
542
impl MergeResults for Value {
@@ -614,8 +614,8 @@ fn connect<T: IntoConnectionInfo>(
614
614
readonly : bool ,
615
615
password : Option < String > ,
616
616
) -> RedisResult < Connection >
617
- where
618
- T : std:: fmt:: Debug ,
617
+ where
618
+ T : std:: fmt:: Debug ,
619
619
{
620
620
let mut connection_info = info. into_connection_info ( ) ?;
621
621
connection_info. passwd = password;
0 commit comments