1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-23 11:02:35 +03:00

Box the repository everywhere

This commit is contained in:
Quentin Gliech
2023-01-20 17:49:16 +01:00
parent f4c64c2171
commit a9facab131
49 changed files with 296 additions and 296 deletions

View File

@@ -43,10 +43,10 @@ impl SessionInfo {
}
/// Load the [`BrowserSession`] from database
pub async fn load_session<R: Repository>(
pub async fn load_session<E>(
&self,
repo: &mut R,
) -> Result<Option<BrowserSession>, R::Error> {
repo: &mut (impl Repository<Error = E> + ?Sized),
) -> Result<Option<BrowserSession>, E> {
let session_id = if let Some(id) = self.current {
id
} else {