Skip to content

Commit

Permalink
Apply clippy suggestions for Rust 1.66
Browse files Browse the repository at this point in the history
  • Loading branch information
djc authored and jaymell committed Jan 7, 2023
1 parent 4d8562d commit b3d61a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ impl ClusterConnection {
match RoutingInfo::for_routable(cmd) {
Some(RoutingInfo::Random) => {
let mut rng = thread_rng();
Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE) as u16, 0)?)
Ok(addr_for_slot(rng.gen_range(0..SLOT_SIZE), 0)?)
}
Some(RoutingInfo::MasterSlot(slot)) => Ok(addr_for_slot(slot, 0)?),
Some(RoutingInfo::ReplicaSlot(slot)) => Ok(addr_for_slot(slot, 1)?),
Expand Down

0 comments on commit b3d61a4

Please sign in to comment.