Add missing ref keyword
This change ensures that the value is borrowed rather than moved.
This commit is contained in:
parent
4507cd1fe7
commit
58a43b309e
|
@ -70,7 +70,7 @@ impl Encodable for Inventory {
|
||||||
Inventory::Transaction(ref t) => encode_inv!(1, t),
|
Inventory::Transaction(ref t) => encode_inv!(1, t),
|
||||||
Inventory::Block(ref b) => encode_inv!(2, b),
|
Inventory::Block(ref b) => encode_inv!(2, b),
|
||||||
Inventory::CompactBlock(ref b) => encode_inv!(4, 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::WitnessTransaction(ref t) => encode_inv!(0x40000001, t),
|
||||||
Inventory::WitnessBlock(ref b) => encode_inv!(0x40000002, b),
|
Inventory::WitnessBlock(ref b) => encode_inv!(0x40000002, b),
|
||||||
Inventory::Unknown { inv_type: t, hash: ref d } => encode_inv!(t, d),
|
Inventory::Unknown { inv_type: t, hash: ref d } => encode_inv!(t, d),
|
||||||
|
|
Loading…
Reference in New Issue