Skip to content

Commit

Permalink
chore: fix clippy lints
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-orlovsky committed Jan 14, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 248eed3 commit 2bd637d
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/indexers/electrum.rs
Original file line number Diff line number Diff line change
@@ -85,7 +85,7 @@ impl Indexer for Client {
// cache. We remove old transaction, since its data are now updated (for instance, if a
// transaction was re-orged, it may have a different height).

let mut old_cache = mem::replace(&mut cache.tx, BTreeMap::new());
let mut old_cache = mem::take(&mut cache.tx);

Check warning on line 88 in src/indexers/electrum.rs

Codecov / codecov/patch

src/indexers/electrum.rs#L82-L88

Added lines #L82 - L88 were not covered by tests
let mut address_index = BTreeMap::new();
for keychain in descriptor.keychains() {
let mut empty_count = 0usize;
2 changes: 1 addition & 1 deletion src/indexers/esplora.rs
Original file line number Diff line number Diff line change
@@ -215,7 +215,7 @@ impl Indexer for Client {
// cache. We remove old transaction, since its data are now updated (for instance, if a
// transaction was re-orged, it may have a different height).

let mut old_cache = mem::replace(&mut cache.tx, BTreeMap::new());
let mut old_cache = mem::take(&mut cache.tx);

Check warning on line 218 in src/indexers/esplora.rs

Codecov / codecov/patch

src/indexers/esplora.rs#L212-L218

Added lines #L212 - L218 were not covered by tests
let mut address_index = BTreeMap::new();
for keychain in descriptor.keychains() {
let mut empty_count = 0usize;

0 comments on commit 2bd637d

Please sign in to comment.