Use MIN associated const (#9199)

This commit is contained in:
Squirrel
2021-06-24 15:48:39 +01:00
committed by GitHub
parent eac38de198
commit 20347c2edb
7 changed files with 32 additions and 32 deletions
+1 -1
View File
@@ -120,7 +120,7 @@ fn test_once() {
// If we generate 2, adjust a random reputation.
2 => {
if let Some(id) = known_nodes.iter().choose(&mut rng) {
let val = Uniform::new_inclusive(i32::min_value(), i32::MAX)
let val = Uniform::new_inclusive(i32::MIN, i32::MAX)
.sample(&mut rng);
peerset_handle.report_peer(id.clone(), ReputationChange::new(val, ""));
}