refactor: simplify Receipts implementation (#8710)

This commit is contained in:
Thomas Coratger
2024-06-10 14:26:44 +02:00
committed by GitHub
parent e5832d5189
commit 76a1a3d005
16 changed files with 66 additions and 91 deletions

View File

@ -34,7 +34,7 @@ impl FromReader for ReceiptFileClient {
where
B: AsyncReadExt + Unpin,
{
let mut receipts = Receipts::new();
let mut receipts = Receipts::default();
// use with_capacity to make sure the internal buffer contains the entire chunk
let mut stream =