1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-11-20 12:02:22 +03:00

Replace parse-display with manual Display/FromStr impls

This commit is contained in:
Quentin Gliech
2024-03-19 15:05:50 +01:00
parent 4eeedbef31
commit 7e30daf83e
10 changed files with 334 additions and 168 deletions

View File

@@ -197,9 +197,10 @@ impl OAuth2Client {
/// The application type advertised by the client.
pub async fn application_type(&self) -> Option<OAuth2ApplicationType> {
match self.0.application_type? {
match self.0.application_type.as_ref()? {
ApplicationType::Web => Some(OAuth2ApplicationType::Web),
ApplicationType::Native => Some(OAuth2ApplicationType::Native),
ApplicationType::Unknown(_) => None,
}
}
}