mirror of
https://github.com/aljazceru/cdk.git
synced 2025-12-24 08:05:02 +01:00
chore: clippy
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -444,6 +444,6 @@ impl MintDatabase for MintMemoryDatabase {
|
||||
async fn get_quote_ttl(&self) -> Result<QuoteTTL, Self::Err> {
|
||||
let quote_ttl = self.quote_ttl.read().await;
|
||||
|
||||
Ok(quote_ttl.clone())
|
||||
Ok(*quote_ttl)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user