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
Replace parse-display with manual Display/FromStr impls
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user