From 8c73b276557405e5d7eac8139b6f8a79d0379200 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Fri, 2 Sep 2022 14:00:52 +0200 Subject: Update dependencies --- src/peering/basalt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/peering') diff --git a/src/peering/basalt.rs b/src/peering/basalt.rs index 7f77995..cd70c2b 100644 --- a/src/peering/basalt.rs +++ b/src/peering/basalt.rs @@ -138,7 +138,7 @@ impl BasaltView { let mut ret = vec![]; let mut rng = thread_rng(); for _i in 0..count { - let idx = rng.gen_range(0, possibles.len()); + let idx = rng.gen_range(0..possibles.len()); ret.push(self.slots[possibles[idx]].peer.unwrap()); } ret -- cgit v1.2.3