Skip to content

Commit 1d461af

Browse files
committed
lint code with rust 1.95.0
1 parent 87d4720 commit 1d461af

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/wallet/test/send.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7391,8 +7391,8 @@ fn allocations() {
73917391
.collect();
73927392
// check input colorings
73937393
let input_colorings: Vec<_> = coloring_map
7394-
.iter()
7395-
.flat_map(|(_, c)| c)
7394+
.values()
7395+
.flatten()
73967396
.filter(|c| c.r#type == ColoringType::Input)
73977397
.collect();
73987398
if pending_xfer {
@@ -7436,8 +7436,8 @@ fn allocations() {
74367436
}
74377437
// check change colorings
74387438
let change_colorings: Vec<_> = coloring_map
7439-
.iter()
7440-
.flat_map(|(_, c)| c)
7439+
.values()
7440+
.flatten()
74417441
.filter(|c| c.r#type == ColoringType::Change)
74427442
.collect();
74437443
assert_eq!(change_colorings.len(), amounts_auto.len());
@@ -7733,8 +7733,8 @@ fn allocations() {
77337733
let db_asset_transfers = wallet_2.database().iter_asset_transfers().unwrap();
77347734
// check input colorings
77357735
let input_colorings: Vec<_> = coloring_map
7736-
.iter()
7737-
.flat_map(|(_, c)| c)
7736+
.values()
7737+
.flatten()
77387738
.filter(|c| c.r#type == ColoringType::Input)
77397739
.collect();
77407740
// - 4 colorings
@@ -7771,8 +7771,8 @@ fn allocations() {
77717771
}
77727772
// check change colorings
77737773
let change_colorings: Vec<_> = coloring_map
7774-
.iter()
7775-
.flat_map(|(_, c)| c)
7774+
.values()
7775+
.flatten()
77767776
.filter(|c| c.r#type == ColoringType::Change)
77777777
.filter(|c| {
77787778
db_batch_transfers

0 commit comments

Comments
 (0)