You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Enable clippy lints on a workspace level
This enables a lot more lints than before in some crates, so this fixed a lot of warnings as well.
This commit is contained in:
@@ -84,6 +84,12 @@ impl Credentials {
|
||||
}
|
||||
}
|
||||
|
||||
/// Fetch the client from the database
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the client could not be found or if the underlying
|
||||
/// repository errored.
|
||||
pub async fn fetch<E>(
|
||||
&self,
|
||||
repo: &mut impl RepositoryAccess<Error = E>,
|
||||
@@ -98,6 +104,11 @@ impl Credentials {
|
||||
repo.oauth2_client().find_by_client_id(client_id).await
|
||||
}
|
||||
|
||||
/// Verify credentials presented by the client for authentication
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the credentials are invalid.
|
||||
#[tracing::instrument(skip_all, err)]
|
||||
pub async fn verify(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user