You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-07-29 22:01:14 +03:00
Update Rust to 1.69.0
This commit is contained in:
@ -82,11 +82,9 @@ impl State {
|
||||
&self.mailer
|
||||
}
|
||||
|
||||
// This is fine for now, we may move that to a trait at some point.
|
||||
#[allow(clippy::unused_self, clippy::disallowed_methods)]
|
||||
pub fn rng(&self) -> rand_chacha::ChaChaRng {
|
||||
let _ = self;
|
||||
|
||||
// This is fine.
|
||||
#[allow(clippy::disallowed_methods)]
|
||||
rand_chacha::ChaChaRng::from_rng(rand::thread_rng()).expect("failed to seed rng")
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user