Skip to content

Commit

Permalink
Cargo clippy and cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Nov 30, 2023
1 parent 63e45f7 commit cc64e90
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
7 changes: 1 addition & 6 deletions src/app/dispute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ pub async fn dispute_action(
send_dm(client, my_keys, &initiator_pubkey, message).await?;

// We create a Message for the counterpart
let message = Message::new_dispute(
Some(order.id),
None,
Action::DisputeInitiatedByPeer,
None,
);
let message = Message::new_dispute(Some(order.id), None, Action::DisputeInitiatedByPeer, None);
let message = message.as_json()?;
let counterpart_pubkey = XOnlyPublicKey::from_bech32(counterpart)?;
send_dm(client, my_keys, &counterpart_pubkey, message).await?;
Expand Down
8 changes: 6 additions & 2 deletions src/app/release.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ pub async fn release_action(
order.id, msg.payment.payment_hash
);
// Purchase completed message to buyer
let message =
Message::new_order(Some(order.id), None, Action::PurchaseCompleted, None);
let message = Message::new_order(
Some(order.id),
None,
Action::PurchaseCompleted,
None,
);
let message = message.as_json().unwrap();
send_dm(&client, &my_keys, &buyer_pubkey, message)
.await
Expand Down

0 comments on commit cc64e90

Please sign in to comment.