chore: Prepare for Rust edition bump to 2024 (without autofix) (#27791)
Successor to #27779 - in this PR I've applied changes manually, without futzing with if let lifetimes at all. Release Notes: - N/A
This commit is contained in:
@@ -43,7 +43,7 @@ pub fn random_token() -> String {
|
||||
let mut rng = thread_rng();
|
||||
let mut token_bytes = [0; 48];
|
||||
for byte in token_bytes.iter_mut() {
|
||||
*byte = rng.gen();
|
||||
*byte = rng.r#gen();
|
||||
}
|
||||
BASE64_URL_SAFE.encode(token_bytes)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user