Skip to content

Commit a6a561a

Browse files
authored
chore: relax from impl (#1698)
1 parent c4d3c8d commit a6a561a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/consensus/src/receipt/receipts.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ where
190190

191191
impl<R> From<R> for ReceiptWithBloom<R>
192192
where
193-
R: TxReceipt<Log: Borrow<Log>>,
193+
R: TxReceipt,
194194
{
195195
fn from(receipt: R) -> Self {
196-
let logs_bloom = receipt.logs().iter().map(Borrow::borrow).collect();
197-
Self { receipt, logs_bloom }
196+
let logs_bloom = receipt.bloom();
197+
Self { logs_bloom, receipt }
198198
}
199199
}
200200

0 commit comments

Comments
 (0)