You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
Apply cargo fmt
following changes in nightly rustfmt
rustfmt now formats `let … else { … }` expressions
This commit is contained in:
@@ -47,7 +47,9 @@ pub trait OAuth2ClientRepository: Send + Sync {
|
||||
|
||||
/// Find an OAuth2 client by its client ID
|
||||
async fn find_by_client_id(&mut self, client_id: &str) -> Result<Option<Client>, Self::Error> {
|
||||
let Ok(id) = client_id.parse() else { return Ok(None) };
|
||||
let Ok(id) = client_id.parse() else {
|
||||
return Ok(None);
|
||||
};
|
||||
self.lookup(id).await
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user