mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-05 05:06:14 +01:00
chore: fix clippy
This commit is contained in:
@@ -125,7 +125,7 @@ impl Wallet {
|
||||
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.client.mint_url.clone().into(), proofs, None);
|
||||
let token = Token::new(self.client.mint_url.clone(), proofs, None);
|
||||
Ok(token?)
|
||||
}
|
||||
|
||||
@@ -513,7 +513,7 @@ impl Wallet {
|
||||
|
||||
#[cfg(not(feature = "blocking"))]
|
||||
pub fn proofs_to_token(&self, proofs: Proofs, memo: Option<String>) -> Result<String, Error> {
|
||||
Ok(Token::new(self.client.mint_url.clone().into(), proofs, memo)?.convert_to_string()?)
|
||||
Ok(Token::new(self.client.mint_url.clone(), proofs, memo)?.convert_to_string()?)
|
||||
}
|
||||
|
||||
#[cfg(feature = "blocking")]
|
||||
|
||||
2
justfile
2
justfile
@@ -9,6 +9,8 @@ precommit:
|
||||
cargo test -p cashu
|
||||
cargo test -p cashu-sdk
|
||||
cargo clippy
|
||||
cargo clippy --target wasm32-unknown-unknown -p cashu
|
||||
cargo clippy --target wasm32-unknown-unknown -p cashu-sdk
|
||||
rustup default 1.70.0
|
||||
cargo check -p cashu
|
||||
cargo check -p cashu-sdk --no-default-features --features mint
|
||||
|
||||
Reference in New Issue
Block a user