mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Update dependencies with breaking changes
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
use byteserde::ser_heap::ByteSerializeHeap;
|
||||
|
||||
pub struct ExperimentalPlayer {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
|
||||
use crate::matches::CustomGameLogic;
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ impl ScoreTracker {
|
||||
} else if other_teams.len() == 1 {
|
||||
other_teams[0]
|
||||
} else {
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
let index = rand::rng().random_range(0..other_teams.len());
|
||||
other_teams[index]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user