1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-31 09:24:31 +03:00

Fix rustfmt

This commit is contained in:
Quentin Gliech
2023-01-18 12:27:44 +01:00
parent 3798f25f7d
commit 8c585b20f0
2 changed files with 7 additions and 2 deletions

View File

@ -182,7 +182,11 @@ impl<'c> OAuth2SessionRepository for PgOAuth2SessionRepository<'c> {
),
err,
)]
async fn finish(&mut self, clock: &dyn Clock, session: Session) -> Result<Session, Self::Error> {
async fn finish(
&mut self,
clock: &dyn Clock,
session: Session,
) -> Result<Session, Self::Error> {
let finished_at = clock.now();
let res = sqlx::query!(
r#"

View File

@ -33,7 +33,8 @@ pub trait OAuth2SessionRepository: Send + Sync {
user_session: &BrowserSession,
) -> Result<Session, Self::Error>;
async fn finish(&mut self, clock: &dyn Clock, session: Session) -> Result<Session, Self::Error>;
async fn finish(&mut self, clock: &dyn Clock, session: Session)
-> Result<Session, Self::Error>;
async fn list_paginated(
&mut self,