1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-07-29 22:01:14 +03:00

Loads of docs & enabling more clippy lints

This commit is contained in:
Quentin Gliech
2022-02-01 12:02:32 +01:00
parent dd7449b92e
commit a45381828c
28 changed files with 188 additions and 51 deletions

View File

@ -14,7 +14,14 @@
//! Interactions with the database
#![allow(clippy::used_underscore_binding)] // This is needed by sqlx macros
#![forbid(unsafe_code)]
#![deny(clippy::all, rustdoc::broken_intra_doc_links)]
#![warn(clippy::pedantic)]
#![allow(
clippy::missing_errors_doc,
clippy::missing_panics_doc,
clippy::module_name_repetitions
)]
use chrono::{DateTime, Utc};
use mas_data_model::{StorageBackend, StorageBackendMarker};

View File

@ -93,6 +93,7 @@ impl AccessTokenLookupError {
}
}
#[allow(clippy::too_many_lines)]
pub async fn lookup_active_access_token(
executor: impl PgExecutor<'_>,
token: &str,