1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-06 06:02:40 +03:00

Upgrade clippy lints to 1.74.0 & fix warnings

This commit is contained in:
Quentin Gliech
2023-12-01 10:50:17 +01:00
parent 5b272dff08
commit df3ca5ae66
13 changed files with 147 additions and 114 deletions

View File

@@ -248,10 +248,10 @@ impl Options {
.context("User not found")?;
let compat_sessions_ids: Vec<Uuid> = sqlx::query_scalar(
r#"
r"
SELECT compat_session_id FROM compat_sessions
WHERE user_id = $1 AND finished_at IS NULL
"#,
",
)
.bind(Uuid::from(user.id))
.fetch_all(&mut **repo)
@@ -276,12 +276,12 @@ impl Options {
}
let oauth2_sessions_ids: Vec<Uuid> = sqlx::query_scalar(
r#"
r"
SELECT oauth2_sessions.oauth2_session_id
FROM oauth2_sessions
INNER JOIN user_sessions USING (user_session_id)
WHERE user_sessions.user_id = $1 AND oauth2_sessions.finished_at IS NULL
"#,
",
)
.bind(Uuid::from(user.id))
.fetch_all(&mut **repo)
@@ -313,10 +313,10 @@ impl Options {
}
let user_sessions_ids: Vec<Uuid> = sqlx::query_scalar(
r#"
r"
SELECT user_session_id FROM user_sessions
WHERE user_id = $1 AND finished_at IS NULL
"#,
",
)
.bind(Uuid::from(user.id))
.fetch_all(&mut **repo)