Skip to content

Commit

Permalink
cargo fmt (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
95ulisse committed Jan 10, 2023
1 parent 4c7b5e7 commit bba29c9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/apis/payments/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ pub enum AdditionalInputType {

#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
pub struct User {
pub id: String
pub id: String,
}

#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq)]
Expand Down
12 changes: 7 additions & 5 deletions tests/common/mock_server/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ pub(super) async fn create_payment(
) -> HttpResponse {
let id = Uuid::new_v4().to_string();
let user = match create_payment_request.user.clone() {
CreatePaymentUserRequest::NewUser { name: _, email: _, phone: _ } => User {
id: "payment-source-user-id".to_string()
},
CreatePaymentUserRequest::ExistingUser { id } => User {
id
CreatePaymentUserRequest::NewUser {
name: _,
email: _,
phone: _,
} => User {
id: "payment-source-user-id".to_string(),
},
CreatePaymentUserRequest::ExistingUser { id } => User { id },
};

let payment_method = match create_payment_request.payment_method.clone() {
Expand Down

0 comments on commit bba29c9

Please sign in to comment.