Use MIN associated const (#9199)

This commit is contained in:
Squirrel authored and GitHub committed 2021-06-24 15:48:39 +01:00
1 parent eac38de198
commit 20347c2edb
7 files changed
+32 -32

No files matched your search

+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, ""));
}