Skip to content

Commit 8a28ac1

Browse files
committed
lint: clippy
1 parent 559d20f commit 8a28ac1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crates/db/tests/db.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,17 @@ fn test_insert_signet_block() {
3939
block: SealedBlock {
4040
header: SealedHeader::new(alloy::consensus::Header::default()),
4141
body: BlockBody {
42-
transactions: std::iter::repeat(
43-
TxEnvelope::Eip1559(Signed::new_unhashed(
42+
transactions: std::iter::repeat_n(TxEnvelope::Eip1559(Signed::new_unhashed(
4443
TxEip1559::default(),
4544
Signature::test_signature(),
4645
))
47-
.into(),
48-
)
49-
.take(10)
46+
.into(), 10)
5047
.collect(),
5148
ommers: vec![],
5249
withdrawals: None,
5350
},
5451
},
55-
senders: std::iter::repeat(Address::repeat_byte(0x33)).take(10).collect(),
52+
senders: std::iter::repeat_n(Address::repeat_byte(0x33), 10).collect(),
5653
};
5754

5855
writer

0 commit comments

Comments
 (0)