You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-23 11:02:35 +03:00
handlers: box the rng and clock, and extract it from the state
This commit is contained in:
@@ -37,8 +37,13 @@ pub(crate) mod repository;
|
||||
pub mod upstream_oauth2;
|
||||
pub mod user;
|
||||
|
||||
use rand_core::CryptoRngCore;
|
||||
|
||||
pub use self::{
|
||||
clock::{Clock, SystemClock},
|
||||
pagination::{Page, Pagination},
|
||||
repository::Repository,
|
||||
};
|
||||
|
||||
pub type BoxClock = Box<dyn Clock + Send>;
|
||||
pub type BoxRng = Box<dyn CryptoRngCore + Send>;
|
||||
|
||||
Reference in New Issue
Block a user