Bump dependencies to get a single version of rand (#2733)

This removes a few crates in the dependencies, and a few exceptions (at
the price of a new one) in the cargo-deny configuration.
This commit is contained in:
Benjamin Bouvier
2021-03-17 15:07:50 +01:00
committed by GitHub
parent a8aaf812ef
commit 4603b3b292
7 changed files with 23 additions and 20 deletions

View File

@@ -24,7 +24,7 @@ cfg-if = "1.0"
backtrace = "0.3.55"
lazy_static = "1.3.0"
psm = "0.1.11"
rand = "0.7.3"
rand = "0.8.3"
anyhow = "1.0.38"
[target.'cfg(target_os = "windows")'.dependencies]

View File

@@ -263,7 +263,7 @@ impl PoolingAllocationStrategy {
match self {
Self::NextAvailable => free_count - 1,
Self::Random => rand::thread_rng().gen_range(0, free_count),
Self::Random => rand::thread_rng().gen_range(0..free_count),
}
}
}