1
0
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:
Quentin Gliech
2023-04-24 11:01:59 +02:00
parent a6d1410146
commit 3979e9f46a
7 changed files with 25 additions and 42 deletions

View File

@ -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")
}