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:
    ACK 58a43b309e 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:
merge-script 2024-07-08 18:06:49 +00:00
commit 786494b72d
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -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),