Skip to content

Commit 049021f

Browse files
committed
refactor(auth-qrcode): Inline declaration of oauth2 client type
Signed-off-by: Kévin Commaille <[email protected]>
1 parent 4db32b1 commit 049021f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

crates/matrix-sdk/src/authentication/qrcode/oauth_client.rs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,13 @@ use vodozemac::Curve25519PublicKey;
2929
use super::DeviceAuthorizationOauthError;
3030
use crate::{authentication::oidc::OidcSessionTokens, http_client::HttpClient};
3131

32-
/// Oauth 2.0 Basic client.
33-
type OauthClientInner<
34-
HasAuthUrl = EndpointNotSet,
35-
HasDeviceAuthUrl = EndpointSet,
36-
HasIntrospectionUrl = EndpointNotSet,
37-
HasRevocationUrl = EndpointNotSet,
38-
HasTokenUrl = EndpointSet,
39-
> = BasicClient<HasAuthUrl, HasDeviceAuthUrl, HasIntrospectionUrl, HasRevocationUrl, HasTokenUrl>;
40-
4132
/// An OAuth 2.0 specific HTTP client.
4233
///
4334
/// This is used to communicate with the OAuth 2.0 authorization server
4435
/// exclusively.
4536
pub(super) struct OauthClient {
46-
inner: OauthClientInner,
37+
/// Oauth 2.0 Basic client.
38+
inner: BasicClient<EndpointNotSet, EndpointSet, EndpointNotSet, EndpointNotSet, EndpointSet>,
4739
http_client: HttpClient,
4840
}
4941

0 commit comments

Comments
 (0)