Explorar o código

chore: clippy

thesimplekid hai 1 ano
pai
achega
2880b5ae8b
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      crates/cashu-sdk/src/wallet.rs

+ 2 - 5
crates/cashu-sdk/src/wallet.rs

@@ -134,7 +134,7 @@ impl Wallet {
     pub fn mint_token(&self, amount: Amount, hash: &str) -> Result<Token, Error> {
         let proofs = self.mint(amount, hash)?;
 
-        let token = Token::new(self.client.client.mint_url.clone().into(), proofs, None);
+        let token = Token::new(self.client.client.mint_url.clone(), proofs, None);
         Ok(token?)
     }
 
@@ -518,10 +518,7 @@ impl Wallet {
 
     #[cfg(feature = "blocking")]
     pub fn proofs_to_token(&self, proofs: Proofs, memo: Option<String>) -> Result<String, Error> {
-        Ok(
-            Token::new(self.client.client.mint_url.clone().into(), proofs, memo)?
-                .convert_to_string()?,
-        )
+        Ok(Token::new(self.client.client.mint_url.clone(), proofs, memo)?.convert_to_string()?)
     }
 }