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,13 @@ pub struct UserAuthorization<F = ()> {
|
||||
|
||||
impl<F: Send> UserAuthorization<F> {
|
||||
// TODO: take scopes to validate as parameter
|
||||
/// Verify a user authorization and return the session and the protected
|
||||
/// form value
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the token is invalid, if the user session ended or
|
||||
/// if the form is missing
|
||||
pub async fn protected_form<E>(
|
||||
self,
|
||||
repo: &mut impl RepositoryAccess<Error = E>,
|
||||
@@ -103,6 +110,11 @@ impl<F: Send> UserAuthorization<F> {
|
||||
}
|
||||
|
||||
// TODO: take scopes to validate as parameter
|
||||
/// Verify a user authorization and return the session
|
||||
///
|
||||
/// # Errors
|
||||
///
|
||||
/// Returns an error if the token is invalid or if the user session ended
|
||||
pub async fn protected<E>(
|
||||
self,
|
||||
repo: &mut impl RepositoryAccess<Error = E>,
|
||||
|
||||
Reference in New Issue
Block a user