Skip to content

Commit b3d61a4

Browse files
djcjaymell
authored andcommitted
Apply clippy suggestions for Rust 1.66
1 parent 4d8562d commit b3d61a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis/src/cluster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ impl ClusterConnection {
383383
match RoutingInfo::for_routable(cmd) {
384384
Some(RoutingInfo::Random) => {
385385
let mut rng = thread_rng();
386-
Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE) as u16, 0)?)
386+
Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE), 0)?)
387387
}
388388
Some(RoutingInfo::MasterSlot(slot)) => Ok(addr_for_slot(slot, 0)?),
389389
Some(RoutingInfo::ReplicaSlot(slot)) => Ok(addr_for_slot(slot, 1)?),

0 commit comments

Comments
 (0)