Skip to content

Commit

Permalink
chore: clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Oct 4, 2024
1 parent 139fe9f commit 5cadda7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/cdk-axum/src/router_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ pub async fn post_melt_bolt11(
) -> Result<Json<MeltQuoteBolt11Response>, Response> {
let res = state.mint.melt(&payload).await.map_err(into_response)?;

Ok(Json(res.into()))
Ok(Json(res))
}

pub async fn get_melt_bolt12_quote(
Expand Down
2 changes: 1 addition & 1 deletion crates/cdk-phoenixd/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ impl MintLightning for Phoenixd {

let amount = match amount {
Some(amount) => amount,
None => amount_for_offer(&offer, &CurrencyUnit::Sat)?,
None => amount_for_offer(offer, &CurrencyUnit::Sat)?,
};

let pay_response = self
Expand Down
2 changes: 1 addition & 1 deletion crates/cdk/src/wallet/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ impl HttpClient {
.await?;

match serde_json::from_value::<MeltQuoteBolt11Response>(res.clone()) {
Ok(melt_quote_response) => Ok(melt_quote_response.into()),
Ok(melt_quote_response) => Ok(melt_quote_response),
Err(_) => Err(ErrorResponse::from_value(res)?.into()),
}
}
Expand Down

0 comments on commit 5cadda7

Please sign in to comment.