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

More cleanups

This commit is contained in:
Quentin Gliech
2022-10-27 14:45:31 +02:00
parent 368a9282a1
commit 2d2127dcdb
12 changed files with 57 additions and 45 deletions

View File

@@ -108,7 +108,7 @@ impl CallbackDestination {
})
}
pub async fn go<T: Serialize>(
pub async fn go<T: Serialize + Send + Sync>(
self,
templates: &Templates,
params: T,

View File

@@ -153,7 +153,7 @@ const INACTIVE: IntrospectionResponse = IntrospectionResponse {
jti: None,
};
#[tracing::instrument(skip_all, err)]
#[allow(clippy::too_many_lines)]
pub(crate) async fn post(
State(pool): State<PgPool>,
State(encrypter): State<Encrypter>,

View File

@@ -57,7 +57,7 @@ pub async fn get(
let (_clock, mut rng) = crate::rng_and_clock()?;
let mut conn = pool.acquire().await?;
let session = user_authorization.protected(&mut conn).await?;
let session = user_authorization.protected(&mut *conn).await?;
let user = session.browser_session.user;
let mut user_info = UserInfo {