We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 559d20f commit 8a28ac1Copy full SHA for 8a28ac1
crates/db/tests/db.rs
@@ -39,20 +39,17 @@ fn test_insert_signet_block() {
39
block: SealedBlock {
40
header: SealedHeader::new(alloy::consensus::Header::default()),
41
body: BlockBody {
42
- transactions: std::iter::repeat(
43
- TxEnvelope::Eip1559(Signed::new_unhashed(
+ transactions: std::iter::repeat_n(TxEnvelope::Eip1559(Signed::new_unhashed(
44
TxEip1559::default(),
45
Signature::test_signature(),
46
))
47
- .into(),
48
- )
49
- .take(10)
+ .into(), 10)
50
.collect(),
51
ommers: vec![],
52
withdrawals: None,
53
},
54
55
- senders: std::iter::repeat(Address::repeat_byte(0x33)).take(10).collect(),
+ senders: std::iter::repeat_n(Address::repeat_byte(0x33), 10).collect(),
56
};
57
58
writer
0 commit comments