From bed8309d20d8a1758b9e5621308d1f9ae8f9d44f Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Mon, 10 Jun 2024 22:58:15 +0100 Subject: [PATCH] refactor(mint): remove unneed mutablity --- crates/cdk/src/mint/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/cdk/src/mint/mod.rs b/crates/cdk/src/mint/mod.rs index c58d0ed8..7fcbdc1e 100644 --- a/crates/cdk/src/mint/mod.rs +++ b/crates/cdk/src/mint/mod.rs @@ -186,7 +186,7 @@ impl Mint { /// Add current keyset to inactive keysets /// Generate new keyset pub async fn rotate_keyset( - &mut self, + &self, unit: CurrencyUnit, derivation_path: DerivationPath, max_order: u8, @@ -209,7 +209,7 @@ impl Mint { } pub async fn process_mint_request( - &mut self, + &self, mint_request: nut04::MintBolt11Request, ) -> Result { for blinded_message in &mint_request.outputs { @@ -299,7 +299,7 @@ impl Mint { } pub async fn process_swap_request( - &mut self, + &self, swap_request: SwapRequest, ) -> Result { for blinded_message in &swap_request.outputs { @@ -471,7 +471,7 @@ impl Mint { } pub async fn verify_melt_request( - &mut self, + &self, melt_request: &MeltBolt11Request, ) -> Result { let quote = self @@ -564,7 +564,7 @@ impl Mint { } pub async fn process_melt_request( - &mut self, + &self, melt_request: &MeltBolt11Request, preimage: &str, total_spent: Amount,