chore: clippy

This commit is contained in:
thesimplekid
2024-03-06 20:34:24 +00:00
parent 4d4467df58
commit 357479827d
2 changed files with 4 additions and 7 deletions

View File

@@ -212,10 +212,7 @@ impl LocalStore for MemoryLocalStore {
}
async fn add_keyset_counter(&self, keyset_id: &Id, count: u64) -> Result<(), Error> {
self.keyset_counter
.lock()
.await
.insert(keyset_id.clone(), count);
self.keyset_counter.lock().await.insert(*keyset_id, count);
Ok(())
}

View File

@@ -69,7 +69,7 @@ impl<C: Client, L: LocalStore> Wallet<C, L> {
/// Back up seed
pub fn mnemonic(&self) -> Option<Mnemonic> {
self.mnemonic.clone().map(|b| b)
self.mnemonic.clone()
}
pub async fn mint_balances(&self) -> Result<HashMap<UncheckedUrl, Amount>, Error> {
@@ -306,7 +306,7 @@ impl<C: Client, L: LocalStore> Wallet<C, L> {
PreMintSecrets::from_seed(
active_keyset_id,
count,
&mnemonic,
mnemonic,
quote_info.amount,
false,
)?
@@ -704,7 +704,7 @@ impl<C: Client, L: LocalStore> Wallet<C, L> {
.unwrap_or(0);
counter = Some(count);
PreMintSecrets::from_seed(active_keyset_id, count, &mnemonic, proofs_amount, true)?
PreMintSecrets::from_seed(active_keyset_id, count, mnemonic, proofs_amount, true)?
}
None => PreMintSecrets::blank(active_keyset_id, proofs_amount)?,
};