Skip to content

Commit

Permalink
feat: derive Clone trait for TokenRequest (#79)
Browse files Browse the repository at this point in the history
* feat: derive `Clone` trait for `TokenRequest`

* refactor: remove unnecessary reference
  • Loading branch information
nanderstabel authored Aug 28, 2024
1 parent dac4102 commit 23facd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion oid4vci/src/token_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use serde_with::skip_serializing_none;

/// Token Request as described here: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0-13.html#name-token-request
#[skip_serializing_none]
#[derive(Serialize, Deserialize, Debug, PartialEq)]
#[derive(Serialize, Deserialize, Debug, PartialEq, Clone)]
#[serde(tag = "grant_type")]
pub enum TokenRequest {
#[serde(rename = "authorization_code")]
Expand Down
2 changes: 1 addition & 1 deletion oid4vci/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ impl<CFC: CredentialFormatCollection + DeserializeOwned> Wallet<CFC> {
.ok_or(anyhow::anyhow!("No c_nonce found."))?
.clone(),
)
.subject_syntax_type(&subject_syntax_type.to_string())
.subject_syntax_type(subject_syntax_type.to_string())
.build()
.await?,
),
Expand Down

0 comments on commit 23facd4

Please sign in to comment.