Fixed clippy warnings.
This commit is contained in:
@@ -35,7 +35,7 @@ where
|
||||
let token_hash = hash_secret(&credentials);
|
||||
let token = repository::tokens::get_by_access_token_hash(&pool, &token_hash)
|
||||
.await
|
||||
.map_err(|error| BearerError::Repository(error))?
|
||||
.map_err(BearerError::Repository)?
|
||||
.ok_or(BearerError::InvalidCredentials)?;
|
||||
|
||||
Ok(crate::domain::Authorization::new(token.user_id))
|
||||
|
||||
Reference in New Issue
Block a user