From 335bac7bcacfe7c9659d30bcab849acf921b2a9c Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Thu, 30 Jan 2025 00:07:46 +0000 Subject: [PATCH] chore: clippy --- crates/cdk-integration-tests/tests/mint.rs | 3 --- crates/cdk/src/cdk_database/mint_memory.rs | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/crates/cdk-integration-tests/tests/mint.rs b/crates/cdk-integration-tests/tests/mint.rs index 4d5e2f24..b06223df 100644 --- a/crates/cdk-integration-tests/tests/mint.rs +++ b/crates/cdk-integration-tests/tests/mint.rs @@ -17,7 +17,6 @@ use cdk::nuts::{ ProofState, Proofs, SecretKey, SpendingConditions, State, SwapRequest, }; use cdk::subscription::{IndexableParams, Params}; -use cdk::types::QuoteTTL; use cdk::util::unix_time; use cdk::Mint; use tokio::sync::OnceCell; @@ -50,8 +49,6 @@ async fn new_mint(fee: u64) -> Mint { .expect("Could not set mint info"); let mnemonic = Mnemonic::generate(12).unwrap(); - let quote_ttl = QuoteTTL::new(10000, 10000); - Mint::new( &mnemonic.to_seed_normalized(""), Arc::new(localstore), diff --git a/crates/cdk/src/cdk_database/mint_memory.rs b/crates/cdk/src/cdk_database/mint_memory.rs index 99480c4f..52bf4c70 100644 --- a/crates/cdk/src/cdk_database/mint_memory.rs +++ b/crates/cdk/src/cdk_database/mint_memory.rs @@ -444,6 +444,6 @@ impl MintDatabase for MintMemoryDatabase { async fn get_quote_ttl(&self) -> Result { let quote_ttl = self.quote_ttl.read().await; - Ok(quote_ttl.clone()) + Ok(*quote_ttl) } }