Skip to content

Commit 177c173

Browse files
Shresth79mattsse
andauthored
perf(consensus): avoid clones in ReceiptWithBloom::into_logs (#3894)
* perf(consensus): avoid clones in ReceiptWithBloom::into_logs * chore(consensus): drop redundant receipt test --------- Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
1 parent 98e5251 commit 177c173

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

crates/consensus/src/receipt/receipts.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,13 @@ where
298298
fn logs(&self) -> &[Self::Log] {
299299
self.receipt.logs()
300300
}
301+
302+
fn into_logs(self) -> Vec<Self::Log>
303+
where
304+
Self::Log: Clone,
305+
{
306+
self.receipt.into_logs()
307+
}
301308
}
302309

303310
impl<R> From<R> for ReceiptWithBloom<R>

0 commit comments

Comments
 (0)