Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
cobward committed Sep 5, 2024
1 parent 90719b2 commit d2e8283
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ where
pre_authorized_code: PreAuthorizedCode,
) -> PreAuthorizedCodeTokenRequest<'_, BasicErrorResponse, token::Response> {
PreAuthorizedCodeTokenRequest {
auth_type: &self.inner.auth_type(),
auth_type: self.inner.auth_type(),
client_id: Some(self.inner.client_id()),
client_secret: None,
code: pre_authorized_code,
extra_params: Vec::new(),
token_url: &self.inner.token_uri(),
token_url: self.inner.token_uri(),
tx_code: None,
_phantom: PhantomData,
}
Expand Down
6 changes: 6 additions & 0 deletions src/core/profiles/jwt_vc_json/credential_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ impl CredentialRequestProfile for CredentialRequestWithFormat {
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct CredentialRequest {}

impl Default for CredentialRequest {
fn default() -> Self {
Self::new()
}
}

impl CredentialRequest {
pub fn new() -> Self {
Self {}
Expand Down
6 changes: 6 additions & 0 deletions src/core/profiles/ldp_vc/credential_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ where
#[derive(Clone, Debug, Deserialize, PartialEq, Serialize)]
pub struct CredentialRequest {}

impl Default for CredentialRequest {
fn default() -> Self {
Self::new()
}
}

impl CredentialRequest {
pub fn new() -> Self {
Self {}
Expand Down
6 changes: 6 additions & 0 deletions src/core/profiles/mso_mdoc/credential_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ pub struct CredentialRequest {
claims: Claims<CredentialConfigurationClaim>,
}

impl Default for CredentialRequest {
fn default() -> Self {
Self::new()
}
}

impl CredentialRequest {
pub fn new() -> Self {
Self {
Expand Down
4 changes: 2 additions & 2 deletions src/metadata/authorization_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl AuthorizationServerMetadata {
CM: CredentialConfigurationProfile,
{
let credential_issuer_authorization_server_metadata =
Self::discover(&credential_issuer_metadata.credential_issuer(), http_client);
Self::discover(credential_issuer_metadata.credential_issuer(), http_client);
let Some(grant_type) = grant_type else {
// If grants is not present or is empty, the Wallet MUST determine the Grant Types the
// Credential Issuer's Authorization Server supports using the respective metadata.
Expand Down Expand Up @@ -190,7 +190,7 @@ impl AuthorizationServerMetadata {
CM: CredentialConfigurationProfile,
{
let credential_issuer_authorization_server_metadata =
Self::discover_async(&credential_issuer_metadata.credential_issuer(), http_client)
Self::discover_async(credential_issuer_metadata.credential_issuer(), http_client)
.await;
let Some(grant_type) = grant_type else {
// If grants is not present or is empty, the Wallet MUST determine the Grant Types the
Expand Down

0 comments on commit d2e8283

Please sign in to comment.