Skip to content

Commit 4813791

Browse files
mibesmibes404
authored andcommitted
Formatting fixes.
1 parent 5346849 commit 4813791

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/cluster.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ impl ClusterConnection {
316316
}
317317

318318
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())
320320
{
321321
if check_connection(&mut conn) {
322322
new_connections.insert(addr.to_string(), conn);
@@ -331,8 +331,8 @@ impl ClusterConnection {
331331
}
332332

333333
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,
336336
{
337337
let mut connections = self.connections.borrow_mut();
338338
let mut new_slots = None;
@@ -419,9 +419,9 @@ impl ClusterConnection {
419419
}
420420

421421
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>,
425425
{
426426
let mut connections = self.connections.borrow_mut();
427427
let mut results = HashMap::new();
@@ -436,9 +436,9 @@ impl ClusterConnection {
436436

437437
#[allow(clippy::unnecessary_unwrap)]
438438
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>,
442442
{
443443
let slot = match RoutingInfo::for_packed_command(cmd) {
444444
Some(RoutingInfo::Random) => None,
@@ -535,8 +535,8 @@ impl ClusterConnection {
535535

536536
trait MergeResults {
537537
fn merge_results(_values: HashMap<&str, Self>) -> Self
538-
where
539-
Self: Sized;
538+
where
539+
Self: Sized;
540540
}
541541

542542
impl MergeResults for Value {
@@ -614,8 +614,8 @@ fn connect<T: IntoConnectionInfo>(
614614
readonly: bool,
615615
password: Option<String>,
616616
) -> RedisResult<Connection>
617-
where
618-
T: std::fmt::Debug,
617+
where
618+
T: std::fmt::Debug,
619619
{
620620
let mut connection_info = info.into_connection_info()?;
621621
connection_info.passwd = password;

0 commit comments

Comments
 (0)