Skip to content

Commit

Permalink
Address cargo clippy warnings (#439)
Browse files Browse the repository at this point in the history
Fix indentations on documentations.
  • Loading branch information
erdemyerebasmaz authored Aug 8, 2024
1 parent 3e38e59 commit 852b712
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions lib/core/src/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -697,8 +697,9 @@ pub mod duplicates {
///
/// * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
/// - started to pay the invoice asynchronously in the case of LNURL-withdraw,
/// - verified the client signature in the case of LNURL-auth,////// * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
/// description of the reason.
/// - verified the client signature in the case of LNURL-auth,
/// * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
/// description of the reason.
///
/// Both cases are described in LUD-03 <https://github.com/lnurl/luds/blob/luds/03.md> & LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
#[derive(Clone, Deserialize, Debug, Serialize)]
Expand Down
8 changes: 4 additions & 4 deletions lib/core/src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1176,14 +1176,14 @@ impl From<SwapTree> for InternalSwapTree {
/// Contains the result of the entire LNURL-pay interaction, as reported by the LNURL endpoint.
///
/// * `EndpointSuccess` indicates the payment is complete. The endpoint may return a `SuccessActionProcessed`,
/// in which case, the wallet has to present it to the user as described in
/// <https://github.com/lnurl/luds/blob/luds/09.md>
/// in which case, the wallet has to present it to the user as described in
/// <https://github.com/lnurl/luds/blob/luds/09.md>
///
/// * `EndpointError` indicates a generic issue the LNURL endpoint encountered, including a freetext
/// field with the reason.
/// field with the reason.
///
/// * `PayError` indicates that an error occurred while trying to pay the invoice from the LNURL endpoint.
/// This includes the payment hash of the failed invoice and the failure reason.
/// This includes the payment hash of the failed invoice and the failure reason.
#[derive(Serialize)]
pub enum LnUrlPayResult {
EndpointSuccess { data: LnUrlPaySuccessData },
Expand Down
4 changes: 2 additions & 2 deletions lib/core/src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ impl LiquidSdk {
///
/// Depending on [Config]'s `payment_timeout_sec`, this function will return:
/// * [PaymentState::Pending] payment - if the payment could be initiated but didn't yet
/// complete in this time
/// complete in this time
/// * [PaymentState::Complete] payment - if the payment was successfully completed in this time
///
/// # Arguments
Expand Down Expand Up @@ -976,7 +976,7 @@ impl LiquidSdk {
///
/// Depending on [Config]'s `payment_timeout_sec`, this function will return:
/// * [PaymentState::Pending] payment - if the payment could be initiated but didn't yet
/// complete in this time
/// complete in this time
/// * [PaymentState::Complete] payment - if the payment was successfully completed in this time
///
/// # Arguments
Expand Down

0 comments on commit 852b712

Please sign in to comment.