Merge rust-bitcoin/rust-bitcoin#2982: Add missing `ref` keyword in `p2p`
58a43b309e
Add missing ref keyword (Jamil Lambert, PhD) Pull request description: One item in the match statement was missing the `ref` keyword. This has been added. ACKs for top commit: apoelstra: ACK58a43b309e
I think the noise is fine; this is an easy one-ack merge and should not cause rebasing pain for anybody Tree-SHA512: 6ef383fba4a1836e0f904889086d8494a82bd01c407d738360d15cd31742ff6979e1aa406f20b27f47060f8d8e96015c20cce1834948d9ef786731ad7e7f8ce6
This commit is contained in:
commit
786494b72d
|
@ -70,7 +70,7 @@ impl Encodable for Inventory {
|
|||
Inventory::Transaction(ref t) => encode_inv!(1, t),
|
||||
Inventory::Block(ref b) => encode_inv!(2, b),
|
||||
Inventory::CompactBlock(ref b) => encode_inv!(4, b),
|
||||
Inventory::WTx(w) => encode_inv!(5, w),
|
||||
Inventory::WTx(ref w) => encode_inv!(5, w),
|
||||
Inventory::WitnessTransaction(ref t) => encode_inv!(0x40000001, t),
|
||||
Inventory::WitnessBlock(ref b) => encode_inv!(0x40000002, b),
|
||||
Inventory::Unknown { inv_type: t, hash: ref d } => encode_inv!(t, d),
|
||||
|
|
Loading…
Reference in New Issue