Skip to content

Commit

Permalink
clippy: wallet clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
thesimplekid committed Nov 12, 2023
1 parent 8c78b9a commit 2f5d220
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/cashu-sdk/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ use cashu::nuts::nut00::{BlindedSignature, Proof, Proofs};
use cashu::nuts::nut01::Keys;
use cashu::nuts::nut03::RequestMintResponse;
use cashu::nuts::nut06::{SplitPayload, SplitRequest};
#[cfg(feature = "nut07")]
use cashu::types::ProofsStatus;
use cashu::types::{Melted, SendProofs};
use cashu::url::UncheckedUrl;
use cashu::Amount;
pub use cashu::Bolt11Invoice;
#[cfg(feature = "nut07")]
use cashu::{nuts::nut00::mint, types::ProofsStatus};
use thiserror::Error;
use tracing::warn;

Expand Down Expand Up @@ -60,8 +60,6 @@ impl<C: Client> Wallet<C> {
&self,
proofs: Vec<cashu::nuts::nut00::mint::Proof>,
) -> Result<ProofsStatus, Error> {
use cashu::types::ProofsStatus;

let spendable = self
.client
.post_check_spendable(&self.mint_url.clone().try_into()?, proofs.clone())
Expand Down Expand Up @@ -90,7 +88,7 @@ impl<C: Client> Wallet<C> {
pub async fn mint_token(&self, amount: Amount, hash: &str) -> Result<Token, Error> {
let proofs = self.mint(amount, hash).await?;

let token = Token::new(self.mint_url.clone().into(), proofs, None);
let token = Token::new(self.mint_url.clone(), proofs, None);
Ok(token?)
}

Expand Down

0 comments on commit 2f5d220

Please sign in to comment.